public class PsiDiamondTypeImpl extends PsiDiamondType
PsiDiamondType.DiamondInferenceResult
PsiType.Stub
ourDiamondGuard
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, hasDiamond
addAnnotation, annotate, createArray, createArrayType, createArrayType, findAnnotation, getAnnotationProvider, getAnnotations, getApplicableAnnotations, getArrayDimensions, getCanonicalText, getDeepComponentType, getJavaLangClass, getJavaLangError, getJavaLangObject, getJavaLangRuntimeException, getJavaLangString, getJavaLangThrowable, getPresentableText, getTypeByName, isAssignableFrom, isConvertibleFrom, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
hasAnnotation
public PsiDiamondTypeImpl(PsiManager manager, PsiTypeElement psiTypeElement)
public java.lang.String getPresentableText()
PsiType
getPresentableText(false)
.getPresentableText
in class PsiType
public java.lang.String getCanonicalText()
PsiType
getCanonicalText(false)
.getCanonicalText
in class PsiType
public java.lang.String getInternalCanonicalText()
PsiType
getInternalCanonicalText
in class PsiType
public boolean isValid()
PsiType
isValid
in class PsiType
PsiElement.isValid()
public boolean equalsToText(java.lang.String text)
PsiType
equalsToText
in class PsiType
text
- the text to compare with.public <A> A accept(PsiTypeVisitor<A> visitor)
PsiType
public GlobalSearchScope getResolveScope()
PsiType
getResolveScope
in class PsiType
public PsiType [] getSuperTypes()
PsiType
getSuperTypes
in class PsiType
public PsiDiamondType.DiamondInferenceResult resolveInferredTypes()
resolveInferredTypes
in class PsiDiamondType
public JavaResolveResult getStaticFactory()
getStaticFactory
in class PsiDiamondType
public 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)