Interface QualifiableExpression
-
- All Superinterfaces:
ASTExpression
,ASTMemberValue
,ASTPrimaryExpression
,ASTSwitchArrowRHS
,GenericNode<JavaNode>
,JavaNode
,JjtreeNode<JavaNode>
,Node
,Reportable
,TextAvailableNode
,TypeNode
- All Known Implementing Classes:
ASTArrayAccess
,ASTConstructorCall
,ASTFieldAccess
,ASTMethodCall
,ASTMethodReference
public interface QualifiableExpression extends ASTPrimaryExpression
Node that may be qualified by an expression, e.g. an instance method call or inner class constructor invocation.QualifiableExpression ::=
ArrayAccess
|ConstructorCall
|FieldAccess
|MethodCall
|MethodReference
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default @Nullable ASTExpression
getQualifier()
Returns the expression to the left of the "." if it exists.-
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
-
getQualifier
default @Nullable ASTExpression getQualifier()
Returns the expression to the left of the "." if it exists. This may be atype expression
, or anambiguous name
.
-
-