Interface ASTAssignableExpr.ASTNamedReferenceExpr
-
- All Superinterfaces:
ASTAssignableExpr
,ASTExpression
,ASTMemberValue
,ASTPrimaryExpression
,ASTSwitchArrowRHS
,GenericNode<JavaNode>
,JavaNode
,JjtreeNode<JavaNode>
,Node
,Reportable
,TextAvailableNode
,TypeNode
- All Known Implementing Classes:
ASTFieldAccess
,ASTVariableAccess
- Enclosing interface:
- ASTAssignableExpr
public static interface ASTAssignableExpr.ASTNamedReferenceExpr extends ASTAssignableExpr
An assignable expression that has a name, and refers to a symbol.NamedAssignableExpr ::=
VariableAccess
|FieldAccess
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.sourceforge.pmd.lang.java.ast.ASTAssignableExpr
ASTAssignableExpr.AccessType, ASTAssignableExpr.ASTNamedReferenceExpr
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getName()
Returns the name of the referenced variable.default @Nullable JVariableSymbol
getReferencedSym()
Returns the symbol referenced by this variable.@Nullable JVariableSig
getSignature()
Returns the signature of the referenced variable.-
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.ASTAssignableExpr
getAccessType
-
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.ASTExpression
getConstValue, getConversionContext, getParenthesisDepth, isCompileTimeConstant, isExpression, isParenthesized
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.JavaNode
getEnclosingType, getRoot, getSymbolTable, getTypeSystem
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode
getFirstToken, getLastToken, tokens
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getTextDocument, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasImageEqualTo, isFindBoundary
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode
getOriginalText, getText, getTextRegion
-
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.TypeNode
getTypeMirror, getTypeMirror
-
-
-
-
Method Detail
-
getName
String getName()
Returns the name of the referenced variable.
-
getSignature
@Nullable JVariableSig getSignature()
Returns the signature of the referenced variable. This is relevant for fields, as they may be inherited from some parameterized supertype.
-
getReferencedSym
default @Nullable JVariableSymbol getReferencedSym()
Returns the symbol referenced by this variable.
-
-