Interface ASTAssignableExpr.ASTNamedReferenceExpr
- All Superinterfaces:
ASTAssignableExpr
,ASTExpression
,ASTMemberValue
,ASTPrimaryExpression
,ASTSwitchArrowRHS
,net.sourceforge.pmd.lang.ast.impl.GenericNode<JavaNode>
,JavaNode
,net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode<JavaNode>
,net.sourceforge.pmd.lang.ast.Node
,net.sourceforge.pmd.reporting.Reportable
,net.sourceforge.pmd.lang.ast.TextAvailableNode
,TypeNode
- All Known Implementing Classes:
ASTFieldAccess
,ASTVariableAccess
- Enclosing interface:
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
Nested classes/interfaces inherited from interface net.sourceforge.pmd.lang.java.ast.ASTExpression
ASTExpression.ConstResult
-
Field Summary
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the referenced variable.default @Nullable JVariableSymbol
Returns the symbol referenced by this variable.@Nullable JVariableSig
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
getConstFoldingResult, 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 Details
-
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
Returns the symbol referenced by this variable.
-