public class PsiDiamondTypeImpl extends PsiDiamondType
PsiDiamondType.DiamondInferenceResultPsiType.StubourDiamondGuard| Constructor and Description |
|---|
PsiDiamondTypeImpl(PsiManager manager,
PsiTypeElement psiTypeElement) |
| Modifier and Type | Method and Description |
|---|---|
<A> A |
accept(PsiTypeVisitor<A> visitor)
Passes the type to the specified visitor.
|
static java.util.List<CandidateInfo> |
collectStaticFactories(PsiNewExpression newExpression) |
boolean |
equalsToText(java.lang.String text)
Checks if the specified string is equivalent to the canonical text of the type.
|
java.lang.String |
getCanonicalText()
Same as
getCanonicalText(false). |
java.lang.String |
getInternalCanonicalText()
Return canonical text of the type with some internal details added for presentational purposes.
|
java.lang.String |
getPresentableText()
Same as
getPresentableText(false). |
GlobalSearchScope |
getResolveScope()
Returns the scope in which the reference to the underlying class of a class type is searched.
|
JavaResolveResult |
getStaticFactory() |
PsiType [] |
getSuperTypes()
Returns the list of superclass types for a class type.
|
static boolean |
hasDefaultConstructor(PsiClass psiClass) |
static boolean |
haveConstructorsGenericsParameters(PsiClass psiClass) |
boolean |
isValid()
Checks if the type is currently valid.
|
PsiDiamondType.DiamondInferenceResult |
resolveInferredTypes() |
static PsiDiamondType.DiamondInferenceResult |
resolveInferredTypes(PsiNewExpression newExpression) |
static PsiDiamondType.DiamondInferenceResult |
resolveInferredTypes(PsiNewExpression newExpression,
PsiElement context) |
static PsiDiamondType.DiamondInferenceResult |
resolveInferredTypesNoCheck(PsiNewExpression newExpression,
PsiElement context) |
getDiamondsAwareResolveResult, getDiamondType, hasDiamondaddAnnotation, annotate, createArray, createArrayType, createArrayType, findAnnotation, getAnnotationProvider, getAnnotations, getApplicableAnnotations, getArrayDimensions, getCanonicalText, getDeepComponentType, getJavaLangClass, getJavaLangError, getJavaLangObject, getJavaLangRuntimeException, getJavaLangString, getJavaLangThrowable, getPresentableText, getTypeByName, isAssignableFrom, isConvertibleFrom, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasAnnotationpublic PsiDiamondTypeImpl(PsiManager manager, PsiTypeElement psiTypeElement)
public java.lang.String getPresentableText()
PsiTypegetPresentableText(false).getPresentableText in class PsiTypepublic java.lang.String getCanonicalText()
PsiTypegetCanonicalText(false).getCanonicalText in class PsiTypepublic java.lang.String getInternalCanonicalText()
PsiTypegetInternalCanonicalText in class PsiTypepublic boolean isValid()
PsiTypeisValid in class PsiTypePsiElement.isValid()public boolean equalsToText(java.lang.String text)
PsiTypeequalsToText in class PsiTypetext - the text to compare with.public <A> A accept(PsiTypeVisitor<A> visitor)
PsiTypepublic GlobalSearchScope getResolveScope()
PsiTypegetResolveScope in class PsiTypepublic PsiType [] getSuperTypes()
PsiTypegetSuperTypes in class PsiTypepublic PsiDiamondType.DiamondInferenceResult resolveInferredTypes()
resolveInferredTypes in class PsiDiamondTypepublic JavaResolveResult getStaticFactory()
getStaticFactory in class PsiDiamondTypepublic static PsiDiamondType.DiamondInferenceResult resolveInferredTypes(PsiNewExpression newExpression)
public static PsiDiamondType.DiamondInferenceResult resolveInferredTypes(PsiNewExpression newExpression, PsiElement context)
public static PsiDiamondType.DiamondInferenceResult resolveInferredTypesNoCheck(PsiNewExpression newExpression, PsiElement context)
public static java.util.List<CandidateInfo> collectStaticFactories(PsiNewExpression newExpression)
public static boolean hasDefaultConstructor(PsiClass psiClass)
public static boolean haveConstructorsGenericsParameters(PsiClass psiClass)