public class TypeSelectorManagerImpl extends java.lang.Object implements TypeSelectorManager
Constructor and Description |
---|
TypeSelectorManagerImpl(Project project,
PsiType type,
PsiExpression[] occurrences) |
TypeSelectorManagerImpl(Project project,
PsiType type,
PsiExpression[] occurrences,
boolean areTypesDirected) |
TypeSelectorManagerImpl(Project project,
PsiType type,
PsiExpression mainOccurrence,
PsiExpression[] occurrences) |
TypeSelectorManagerImpl(Project project,
PsiType type,
PsiMethod containingMethod,
PsiExpression mainOccurrence,
PsiExpression[] occurrences) |
Modifier and Type | Method and Description |
---|---|
PsiType |
getDefaultType() |
static PsiType |
getPreferredType(PsiType[] types,
PsiType defaultType) |
TypeSelector |
getTypeSelector() |
PsiType[] |
getTypesForAll() |
protected PsiType[] |
getTypesForAll(boolean areTypesDirected) |
PsiType[] |
getTypesForOne() |
boolean |
isSuggestedType(java.lang.String fqName) |
protected boolean |
isUsedAfter() |
void |
setAllOccurrences(boolean allOccurrences) |
void |
setDefaultType(PsiType defaultType) |
void |
typeSelected(PsiType type) |
static void |
typeSelected(PsiType type,
PsiType defaultType) |
public TypeSelectorManagerImpl(Project project, PsiType type, PsiExpression[] occurrences)
public TypeSelectorManagerImpl(Project project, PsiType type, PsiExpression[] occurrences, boolean areTypesDirected)
public TypeSelectorManagerImpl(Project project, PsiType type, PsiExpression mainOccurrence, PsiExpression[] occurrences)
public TypeSelectorManagerImpl(Project project, PsiType type, PsiMethod containingMethod, PsiExpression mainOccurrence, PsiExpression[] occurrences)
public PsiType[] getTypesForAll()
public PsiType[] getTypesForOne()
public PsiType getDefaultType()
public void setDefaultType(PsiType defaultType)
protected PsiType[] getTypesForAll(boolean areTypesDirected)
protected boolean isUsedAfter()
public void setAllOccurrences(boolean allOccurrences)
setAllOccurrences
in interface TypeSelectorManager
public boolean isSuggestedType(java.lang.String fqName)
isSuggestedType
in interface TypeSelectorManager
public void typeSelected(PsiType type)
typeSelected
in interface TypeSelectorManager
public TypeSelector getTypeSelector()
getTypeSelector
in interface TypeSelectorManager