public class TypeEvaluator
extends java.lang.Object
Constructor and Description |
---|
TypeEvaluator(java.util.LinkedList<Pair<TypeMigrationUsageInfo,PsiType>> types,
TypeMigrationLabeler labeler,
Project project) |
Modifier and Type | Method and Description |
---|---|
PsiSubstitutor |
createMethodSubstitution(PsiParameter[] parameters,
PsiExpression[] actualParms,
PsiMethod method,
PsiExpression call) |
PsiSubstitutor |
createMethodSubstitution(PsiParameter[] parameters,
PsiExpression[] actualParms,
PsiMethod method,
PsiExpression call,
PsiSubstitutor subst,
boolean preferSubst) |
PsiType |
evaluateType(PsiExpression expr) |
java.util.LinkedList<Pair<TypeMigrationUsageInfo,PsiType>> |
getMigratedDeclarations() |
java.lang.String |
getReport() |
<T> T |
getSettings(java.lang.Class<T> aClass) |
PsiType |
getType(PsiElement element) |
PsiType |
getType(TypeMigrationUsageInfo usageInfo) |
static PsiClassType.ClassResolveResult |
resolveType(PsiType type) |
boolean |
setType(TypeMigrationUsageInfo usageInfo,
PsiType type) |
static PsiType |
substituteType(PsiType migrationTtype,
PsiType originalType,
boolean isContraVariantPosition) |
public TypeEvaluator(java.util.LinkedList<Pair<TypeMigrationUsageInfo,PsiType>> types, TypeMigrationLabeler labeler, Project project)
public boolean setType(TypeMigrationUsageInfo usageInfo, PsiType type)
public PsiType getType(PsiElement element)
public PsiType getType(TypeMigrationUsageInfo usageInfo)
public PsiType evaluateType(PsiExpression expr)
public static PsiClassType.ClassResolveResult resolveType(PsiType type)
public PsiSubstitutor createMethodSubstitution(PsiParameter[] parameters, PsiExpression[] actualParms, PsiMethod method, PsiExpression call)
public PsiSubstitutor createMethodSubstitution(PsiParameter[] parameters, PsiExpression[] actualParms, PsiMethod method, PsiExpression call, PsiSubstitutor subst, boolean preferSubst)
public java.lang.String getReport()
public java.util.LinkedList<Pair<TypeMigrationUsageInfo,PsiType>> getMigratedDeclarations()
public static PsiType substituteType(PsiType migrationTtype, PsiType originalType, boolean isContraVariantPosition)
public <T> T getSettings(java.lang.Class<T> aClass)