Interface MethodUsage
- All Superinterfaces:
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
- All Known Subinterfaces:
InvocationNode
- All Known Implementing Classes:
ASTConstructorCall
,ASTEnumConstant
,ASTExplicitConstructorInvocation
,ASTMethodCall
,ASTMethodReference
A node that uses another method or constructor. Those are
InvocationNode
s and
MethodReference
.
TODO should these method be named the same, and added to this interface?-
Field Summary
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull String
Returns the name of the called method.Returns information about the overload selection for this call.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
-
Method Details
-
getMethodName
Returns the name of the called method. If this is a constructor call, returnsJConstructorSymbol.CTOR_NAME
. -
getOverloadSelectionInfo
OverloadSelectionResult getOverloadSelectionInfo()Returns information about the overload selection for this call. Be aware, that selection might have failed (OverloadSelectionResult.isFailed()
).- Since:
- 7.14.0
-