public class PsiIntersectionType extends PsiType.Stub
PsiType.Stub
Modifier and Type | Method and Description |
---|---|
<A> A |
accept(PsiTypeVisitor<A> visitor)
Passes the type to the specified visitor.
|
static PsiType |
createIntersection(boolean flatten,
PsiType... conjuncts) |
static PsiType |
createIntersection(java.util.List<PsiType> conjuncts) |
static PsiType |
createIntersection(PsiType... conjuncts) |
boolean |
equals(java.lang.Object obj) |
boolean |
equalsToText(java.lang.String text)
Checks if the specified string is equivalent to the canonical text of the type.
|
static java.util.Set<PsiType> |
flatten(PsiType[] conjuncts,
java.util.Set<PsiType> types) |
java.lang.String |
getCanonicalText(boolean annotated)
Returns canonical representation of the type (all references fully-qualified).
|
java.lang.String |
getConflictingConjunctsMessage() |
PsiType [] |
getConjuncts() |
java.lang.String |
getInternalCanonicalText()
Return canonical text of the type with some internal details added for presentational purposes.
|
java.lang.String |
getPresentableText(boolean annotated)
Returns text of the type that can be presented to a user (references normally non-qualified).
|
PsiType |
getRepresentative() |
GlobalSearchScope |
getResolveScope()
Returns the scope in which the reference to the underlying class of a class type is searched.
|
PsiType [] |
getSuperTypes()
Returns the list of superclass types for a class type.
|
int |
hashCode() |
boolean |
isValid()
Checks if the type is currently valid.
|
java.lang.String |
toString() |
getCanonicalText, getPresentableText
addAnnotation, annotate, createArray, createArrayType, createArrayType, findAnnotation, getAnnotationProvider, getAnnotations, getApplicableAnnotations, getArrayDimensions, getDeepComponentType, getJavaLangClass, getJavaLangError, getJavaLangObject, getJavaLangRuntimeException, getJavaLangString, getJavaLangThrowable, getTypeByName, isAssignableFrom, isConvertibleFrom
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasAnnotation
public static java.util.Set<PsiType> flatten(PsiType[] conjuncts, java.util.Set<PsiType> types)
public PsiType [] getConjuncts()
public java.lang.String getPresentableText(boolean annotated)
PsiType
getPresentableText
in class PsiType.Stub
public java.lang.String getCanonicalText(boolean annotated)
PsiType
getCanonicalText
in class PsiType.Stub
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 PsiType getRepresentative()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getConflictingConjunctsMessage()