public class JetSimpleNameExpression extends JetReferenceExpression
Modifier and Type | Field and Description |
---|---|
static com.intellij.psi.tree.TokenSet |
REFERENCE_TOKENS |
Constructor and Description |
---|
JetSimpleNameExpression(com.intellij.lang.ASTNode node) |
Modifier and Type | Method and Description |
---|---|
<R,D> R |
accept(JetVisitor<R,D> visitor,
D data) |
void |
accept(JetVisitorVoid visitor) |
protected JetExpression |
findExpressionUnder(JetNodeType type) |
com.intellij.psi.PsiElement |
getIdentifier() |
JetExpression |
getReceiverExpression()
null if it's not a code expression
|
com.intellij.psi.PsiReference |
getReference() |
java.lang.String |
getReferencedName() |
Name |
getReferencedNameAsName() |
com.intellij.psi.PsiElement |
getReferencedNameElement() |
com.intellij.psi.tree.IElementType |
getReferencedNameElementType() |
com.intellij.psi.PsiReference[] |
getReferences() |
boolean |
isImportDirectiveExpression() |
accept, acceptChildren, getLanguage, toString
add, addAfter, addBefore, addInternal, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildInternal, deleteChildRange, findChildByFilter, findChildByType, findChildByType, findChildrenByType, findChildrenByType, findChildrenByType, findChildrenByType, findElementAt, findLastChildByType, findNotNullChildByFilter, findNotNullChildByType, findNotNullChildByType, getChildren, getCopyableUserData, getFirstChild, getLastChild, getManager, getNextSibling, getPrevSibling, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, putCopyableUserData, replace, replaceChildInternal, subtreeChanged, textContains, textToCharArray
acceptChildren, canNavigate, canNavigateToSource, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getContainingFile, getContext, getName, getNavigationElement, getOriginalElement, getPresentation, getProject, getResolveScope, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, navigate, notNullChild, processDeclarations, textMatches, textMatches
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getUserData, getUserDataString, isUserDataEmpty, putUserData, putUserDataIfAbsent, replace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acceptChildren
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, getParent, getPrevSibling, getProject, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toString
public static final com.intellij.psi.tree.TokenSet REFERENCE_TOKENS
public JetSimpleNameExpression(@NotNull com.intellij.lang.ASTNode node)
@Nullable public JetExpression getReceiverExpression()
public boolean isImportDirectiveExpression()
@NotNull public java.lang.String getReferencedName()
@NotNull public Name getReferencedNameAsName()
@NotNull public com.intellij.psi.PsiElement getReferencedNameElement()
@Nullable public com.intellij.psi.PsiElement getIdentifier()
@Nullable public com.intellij.psi.tree.IElementType getReferencedNameElementType()
@NotNull public com.intellij.psi.PsiReference[] getReferences()
getReferences
in interface com.intellij.psi.PsiElement
getReferences
in class com.intellij.psi.impl.PsiElementBase
@Nullable public com.intellij.psi.PsiReference getReference()
getReference
in interface com.intellij.psi.PsiElement
getReference
in class com.intellij.psi.impl.PsiElementBase
public void accept(@NotNull JetVisitorVoid visitor)
accept
in interface JetElement
accept
in interface JetExpression
public <R,D> R accept(@NotNull JetVisitor<R,D> visitor, D data)
accept
in interface JetElement
accept
in interface JetExpression
protected JetExpression findExpressionUnder(JetNodeType type)