public class ClsTypeElementImpl extends ClsElementImpl implements PsiTypeElement
ClsElementImpl.InvalidMirrorExceptionIconable.IconFlags, Iconable.LastComputedIconCOMPILED_ELEMENT, NEXT_LINEFLAGS_LOCKED, ICON_PLACEHOLDERARRAY_FACTORY, EMPTY_ARRAYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_NAVIGATION_ITEM_ARRAY| Constructor and Description |
|---|
ClsTypeElementImpl(PsiElement parent,
java.lang.String typeText,
char variance) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PsiElementVisitor visitor)
Passes the element to the specified visitor.
|
PsiAnnotation |
addAnnotation(java.lang.String qualifiedName)
Adds a new annotation to this owner.
|
void |
appendMirrorText(int indentLevel,
java.lang.StringBuilder buffer) |
PsiAnnotation |
findAnnotation(java.lang.String qualifiedName)
Searches the owner for an annotation with the specified fully qualified name
and returns one if it is found.
|
PsiAnnotation [] |
getAnnotations()
Returns the list of annotations syntactically contained in the element.
|
PsiAnnotation [] |
getApplicableAnnotations() |
java.lang.String |
getCanonicalText() |
PsiElement [] |
getChildren()
Returns the array of children for the PSI element.
|
PsiJavaCodeReferenceElement |
getInnermostComponentReferenceElement()
Returns the reference element pointing to the referenced type, or if the type element
is an array, the reference element for the innermost component type of the array.
|
PsiElement |
getParent()
Returns the parent of the PSI element.
|
java.lang.String |
getText()
Returns the text of the PSI element.
|
PsiType |
getType()
Returns the type referenced by the type element.
|
void |
setMirror(TreeElement element) |
java.lang.String |
toString()
toString() should never be presented to the user.
|
add, addAfter, addBefore, appendText, appendText, checkAdd, checkDelete, copy, delete, findElementAt, findReferenceAt, getChildren, getContainingFile, getIndentSize, getLanguage, getManager, getMirror, getNode, getStartOffsetInParent, getTextLength, getTextOffset, getTextRange, isPhysical, isValid, isWritable, replace, setMirror, setMirrorCheckingType, setMirrorIfPresent, setMirrors, setMirrors, textMatches, textMatches, textToCharArrayacceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, getContext, getFirstChild, getLastChild, getName, getNavigationElement, getNextSibling, getOriginalElement, getPresentation, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, navigate, notNullChild, processDeclarations, textContainsbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisInferredTypeacceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOwnReferences, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArraygetUserData, putUserDatahasAnnotationpublic ClsTypeElementImpl(PsiElement parent, java.lang.String typeText, char variance)
public PsiElement [] getChildren()
PsiElementgetChildren in interface PsiElementpublic PsiElement getParent()
PsiElementgetParent in interface PsiElementpublic java.lang.String getText()
PsiElementgetText in interface PsiElementgetText in class ClsElementImplPsiElement.textMatches(java.lang.CharSequence),
PsiElement.textContains(char)public java.lang.String getCanonicalText()
public void appendMirrorText(int indentLevel,
java.lang.StringBuilder buffer)
appendMirrorText in class ClsElementImplpublic void setMirror(TreeElement element) throws ClsElementImpl.InvalidMirrorException
setMirror in class ClsElementImplClsElementImpl.InvalidMirrorExceptionpublic PsiType getType()
PsiTypeElementNote: when a containing element (field, method etc.) has C-style array declarations, the result of this method may differ from an actual type.
getType in interface PsiTypeElementPsiField.getType(),
PsiMethod.getReturnType(),
PsiParameter.getType(),
PsiVariable.getType()public PsiJavaCodeReferenceElement getInnermostComponentReferenceElement()
PsiTypeElementgetInnermostComponentReferenceElement in interface PsiTypeElementpublic void accept(PsiElementVisitor visitor)
PsiElementaccept in interface PsiElementaccept in class PsiElementBasevisitor - the visitor to pass the element to.public PsiAnnotation [] getAnnotations()
PsiAnnotationOwnergetAnnotations in interface PsiAnnotationOwnerpublic PsiAnnotation findAnnotation(java.lang.String qualifiedName)
PsiAnnotationOwnerfindAnnotation in interface PsiAnnotationOwnerqualifiedName - the fully qualified name of the annotation to find.public PsiAnnotation addAnnotation(java.lang.String qualifiedName)
PsiAnnotationOwneraddAnnotation in interface PsiAnnotationOwnerqualifiedName - qualifiedNamepublic PsiAnnotation [] getApplicableAnnotations()
getApplicableAnnotations in interface PsiAnnotationOwnerpublic java.lang.String toString()
PsiElementtoString in interface PsiElementtoString in class java.lang.Object