public class TypeMigrationRules
extends java.lang.Object
Constructor and Description |
---|
TypeMigrationRules(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
addConversionDescriptor(TypeConversionRule rule) |
void |
addConversionRuleSettings(java.lang.Object settings) |
Pair<PsiType,PsiType> |
bindTypeParameters(PsiType from,
PsiType to,
PsiMethod method,
PsiExpression context,
TypeMigrationLabeler labeler) |
TypeConversionDescriptorBase |
findConversion(PsiType from,
PsiType to,
PsiMember member,
PsiExpression context,
boolean isCovariantPosition,
TypeMigrationLabeler labeler) |
TypeConversionDescriptorBase |
findConversion(PsiType from,
PsiType to,
PsiMember member,
PsiExpression context,
TypeMigrationLabeler labeler) |
<T> T |
getConversionSettings(java.lang.Class<T> aClass) |
SearchScope |
getSearchScope() |
void |
setBoundScope(SearchScope searchScope) |
boolean |
shouldConvertNull(PsiType from,
PsiType to,
PsiExpression context) |
public TypeMigrationRules(Project project)
public void addConversionDescriptor(TypeConversionRule rule)
public void addConversionRuleSettings(java.lang.Object settings)
public <T> T getConversionSettings(java.lang.Class<T> aClass)
public TypeConversionDescriptorBase findConversion(PsiType from, PsiType to, PsiMember member, PsiExpression context, boolean isCovariantPosition, TypeMigrationLabeler labeler)
public TypeConversionDescriptorBase findConversion(PsiType from, PsiType to, PsiMember member, PsiExpression context, TypeMigrationLabeler labeler)
public boolean shouldConvertNull(PsiType from, PsiType to, PsiExpression context)
public void setBoundScope(SearchScope searchScope)
public SearchScope getSearchScope()
public Pair<PsiType,PsiType> bindTypeParameters(PsiType from, PsiType to, PsiMethod method, PsiExpression context, TypeMigrationLabeler labeler)