public class ClsAnnotationImpl extends ClsRepositoryPsiElement<PsiAnnotationStub> implements PsiAnnotation, Navigatable
ClsElementImpl.InvalidMirrorExceptionPsiAnnotation.TargetTypeIconable.IconFlags, Iconable.LastComputedIconCOMPILED_ELEMENT, NEXT_LINEFLAGS_LOCKED, ICON_PLACEHOLDERARRAY_FACTORY, DEFAULT_REFERENCED_METHOD_NAME, EMPTY_ARRAYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_NAVIGATION_ITEM_ARRAY| Constructor and Description |
|---|
ClsAnnotationImpl(PsiAnnotationStub stub) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PsiElementVisitor visitor)
Passes the element to the specified visitor.
|
void |
appendMirrorText(int indentLevel,
java.lang.StringBuilder buffer) |
PsiAnnotationMemberValue |
findAttributeValue(java.lang.String attributeName)
Returns the value of the annotation element with the specified name.
|
PsiAnnotationMemberValue |
findDeclaredAttributeValue(java.lang.String attributeName)
Returns the value of the annotation element with the specified name.
|
PsiElement [] |
getChildren()
Returns the array of children for the PSI element.
|
PsiJavaCodeReferenceElement |
getNameReferenceElement()
Returns the reference element representing the name of the annotation.
|
PsiAnnotationOwner |
getOwner()
Returns an owner of the annotation - usually a parent, but for type annotations the owner might be a type element.
|
PsiAnnotationParameterList |
getParameterList()
Returns the list of parameters for the annotation.
|
java.lang.String |
getQualifiedName()
Returns the fully qualified name of the annotation class.
|
java.lang.String |
getText()
Returns the text of the PSI element.
|
<T extends PsiAnnotationMemberValue> |
setDeclaredAttributeValue(java.lang.String attributeName,
T value)
Set annotation attribute value.
|
void |
setMirror(TreeElement element) |
getContainingFile, getElementType, getFirstChild, getLastChild, getManager, getNextSibling, getParent, getPrevSibling, getStub, isPhysicaladd, addAfter, addBefore, appendText, appendText, checkAdd, checkDelete, copy, delete, findElementAt, findReferenceAt, getChildren, getIndentSize, getLanguage, getMirror, getNode, getStartOffsetInParent, getTextLength, getTextOffset, getTextRange, isValid, isWritable, replace, setMirror, setMirrorCheckingType, setMirrorIfPresent, setMirrors, setMirrors, textMatches, textMatches, textToCharArrayacceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, getContext, getName, getNavigationElement, getOriginalElement, getPresentation, 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, toString, wait, wait, waitgetAttributes, getMetaData, hasQualifiedNameacceptChildren, 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, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toStringgetUserData, putUserDatafindAttribute, hasAttributecanNavigate, canNavigateToSource, navigatepublic ClsAnnotationImpl(PsiAnnotationStub stub)
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 PsiElement [] getChildren()
PsiElementgetChildren in interface PsiElementgetChildren in class ClsRepositoryPsiElement<PsiAnnotationStub>public void accept(PsiElementVisitor visitor)
PsiElementaccept in interface PsiElementaccept in class PsiElementBasevisitor - the visitor to pass the element to.public PsiAnnotationParameterList getParameterList()
PsiAnnotationgetParameterList in interface PsiAnnotationpublic java.lang.String getQualifiedName()
PsiAnnotationgetQualifiedName in interface JvmAnnotationgetQualifiedName in interface PsiAnnotationpublic PsiJavaCodeReferenceElement getNameReferenceElement()
PsiAnnotationgetNameReferenceElement in interface PsiAnnotationpublic PsiAnnotationMemberValue findAttributeValue(java.lang.String attributeName)
PsiAnnotationfindAttributeValue in interface PsiAnnotationattributeName - name of the annotation element for which the value is requested. If it isn't defined in annotation,
the default value is returned.public PsiAnnotationMemberValue findDeclaredAttributeValue(java.lang.String attributeName)
PsiAnnotationfindDeclaredAttributeValue in interface PsiAnnotationattributeName - name of the annotation element for which the value is requested, declared in this annotation.public <T extends PsiAnnotationMemberValue> T setDeclaredAttributeValue(java.lang.String attributeName, T value)
PsiAnnotationsetDeclaredAttributeValue in interface PsiAnnotationattributeName - attribute namevalue - new value template elementpublic java.lang.String getText()
PsiElementgetText in interface PsiElementgetText in class ClsElementImplPsiElement.textMatches(java.lang.CharSequence),
PsiElement.textContains(char)public PsiAnnotationOwner getOwner()
PsiAnnotationgetOwner in interface PsiAnnotation