public interface PsiNameValuePair extends PsiElement, JvmAnnotationAttribute
PsiAnnotation
,
PsiAnnotationParameterList
Iconable.IconFlags, Iconable.LastComputedIcon
Modifier and Type | Field and Description |
---|---|
static ArrayFactory<PsiNameValuePair> |
ARRAY_FACTORY |
static PsiNameValuePair[] |
EMPTY_ARRAY
The empty array of PSI name/value pairs which can be reused to avoid unnecessary allocations.
|
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getAttributeName() |
default JvmAnnotationAttributeValue |
getAttributeValue() |
default PsiAnnotationMemberValue |
getDetachedValue() |
java.lang.String |
getLiteralValue() |
java.lang.String |
getName()
Returns the name of the element.
|
PsiIdentifier |
getNameIdentifier()
Returns the identifier specifying the name of the element.
|
PsiAnnotationMemberValue |
getValue()
Returns the value for the element.
|
PsiAnnotationMemberValue |
setValue(PsiAnnotationMemberValue newValue) |
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOwnReferences, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toString
getUserData, putUserData
static final PsiNameValuePair[] EMPTY_ARRAY
static final ArrayFactory<PsiNameValuePair> ARRAY_FACTORY
PsiIdentifier getNameIdentifier()
java.lang.String getName()
java.lang.String getLiteralValue()
PsiAnnotationMemberValue getValue()
default PsiAnnotationMemberValue getDetachedValue()
getValue()
is that this method
avoids expensive AST loading (see StubBasedPsiElementBase
doc).
The downside is that the result might not be in the same tree as the parent, might be non-physical and so
should only be used for read operations.PsiAnnotationMemberValue setValue(PsiAnnotationMemberValue newValue)
default java.lang.String getAttributeName()
getAttributeName
in interface JvmAnnotationAttribute
default JvmAnnotationAttributeValue getAttributeValue()
getAttributeValue
in interface JvmAnnotationAttribute