public class PsiNameValuePairImpl extends JavaStubPsiElement<PsiNameValuePairStub> implements PsiNameValuePair
Iconable.IconFlags, Iconable.LastComputedIconCREATION_TRACE, ourTraceStubAstBindingFLAGS_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 |
|---|
PsiNameValuePairImpl(ASTNode node) |
PsiNameValuePairImpl(PsiNameValuePairStub stub) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PsiElementVisitor visitor)
Passes the element to the specified visitor.
|
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.
|
NameValuePairElement |
getNode()
Ensures this element is AST-based.
|
PsiReference |
getReference()
Returns the reference from this PSI element to another PSI element (or elements), if one exists.
|
PsiAnnotationMemberValue |
getValue()
Returns the value for the element.
|
PsiAnnotationMemberValue |
setValue(PsiAnnotationMemberValue newValue) |
void |
subtreeChanged() |
java.lang.String |
toString()
toString() should never be presented to the user.
|
acceptChildren, add, addAfter, addBefore, calcTreeElement, checkAdd, clone, cloneImpl, delete, deleteChildRange, getChildren, getLanguage, getTextOffset, replacegetContainingFile, getContext, getElementType, getGreenStub, getManager, getParent, getParentByStub, getParentByTree, getProject, getRequiredStubOrPsiChild, getStub, getStubOrPsiChild, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiChildren, getStubOrPsiParentOfType, isPhysical, isValid, isWritable, setNode, setSubstrateRefaddInternal, addRange, addRangeAfter, addRangeBefore, checkDelete, copy, deleteChildInternal, findChildByFilter, findChildByType, findChildByType, findChildrenByType, findChildrenByType, findChildrenByType, findChildrenByType, findElementAt, findLastChildByType, findNotNullChildByType, findNotNullChildByType, getCopyableUserData, getFirstChild, getLastChild, getNextSibling, getPrevSibling, getStartOffsetInParent, getText, getTextLength, getTextRange, putCopyableUserData, replaceChildInternal, textContains, textMatches, textToCharArraycanNavigate, canNavigateToSource, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getNavigationElement, getOriginalElement, getPresentation, getReferences, getResolveScope, getUseScope, isEquivalentTo, navigate, notNullChild, processDeclarations, textMatchesbuildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlagschangeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttributeName, getAttributeValueacceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getOriginalElement, getOwnReferences, getParent, getPrevSibling, getProject, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArraygetUserData, putUserDatagetElementType, getStubpublic PsiNameValuePairImpl(PsiNameValuePairStub stub)
public PsiNameValuePairImpl(ASTNode node)
public NameValuePairElement getNode()
StubBasedPsiElementBasegetNode in interface PsiElementgetNode in class StubBasedPsiElementBase<PsiNameValuePairStub>StubBasedPsiElementBase.getStub() will return null.public java.lang.String getName()
PsiNameValuePairgetName in interface NavigationItemgetName in interface PsiNameValuePairgetName in class PsiElementBasepublic java.lang.String getLiteralValue()
getLiteralValue in interface PsiNameValuePairpublic PsiIdentifier getNameIdentifier()
PsiNameValuePairgetNameIdentifier in interface PsiNameValuePairpublic PsiAnnotationMemberValue getValue()
PsiNameValuePairgetValue in interface PsiNameValuePairpublic PsiAnnotationMemberValue setValue(PsiAnnotationMemberValue newValue)
setValue in interface PsiNameValuePairpublic PsiAnnotationMemberValue getDetachedValue()
getDetachedValue in interface PsiNameValuePairPsiNameValuePair.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.public void subtreeChanged()
subtreeChanged in class ASTDelegatePsiElementpublic PsiReference getReference()
PsiElementPsiElement.getReferences()
for an example), returns the first associated reference.getReference in interface PsiElementgetReference in class PsiElementBaseReferencesSearchpublic final void accept(PsiElementVisitor visitor)
PsiElementaccept in interface PsiElementaccept in class PsiElementBasevisitor - the visitor to pass the element to.public java.lang.String toString()
PsiElementtoString in interface PsiElementtoString in class java.lang.Object