Interface MethodLikeNode
-
- All Superinterfaces:
AccessNode
,JavaNode
,JavaQualifiableNode
,net.sourceforge.pmd.lang.ast.Node
,net.sourceforge.pmd.lang.ast.QualifiableNode
,net.sourceforge.pmd.lang.symboltable.ScopedNode
- All Known Subinterfaces:
ASTMethodOrConstructorDeclaration
- All Known Implementing Classes:
AbstractMethodLikeNode
,AbstractMethodOrConstructorDeclaration
,ASTAnnotationMethodDeclaration
,ASTConstructorDeclaration
,ASTLambdaExpression
,ASTMethodDeclaration
public interface MethodLikeNode extends AccessNode, JavaQualifiableNode, JavaNode
Groups method, constructor and lambda declarations under a common type.- Since:
- 6.1.0
- Author:
- Clément Fournier
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MethodLikeNode.MethodLikeKind
Kind of method-like.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodLikeNode.MethodLikeKind
getKind()
Returns a token indicating whether this node is a lambda expression or a method or constructor declaration.JavaOperationQualifiedName
getQualifiedName()
Returns a qualified name for this node.-
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.AccessNode
getModifiers, isAbstract, isDefault, isFinal, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setAbstract, setDefault, setFinal, setModifiers, setNative, setPrivate, setProtected, setPublic, setStatic, setStrictfp, setSynchronized, setTransient, setVolatile
-
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.JavaNode
childrenAccept, getScope, jjtAccept, setScope
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathAttributesIterator, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Method Detail
-
getKind
MethodLikeNode.MethodLikeKind getKind()
Returns a token indicating whether this node is a lambda expression or a method or constructor declaration. Can be used to downcast safely to a subinterface or an implementing class.- Returns:
- The kind of method-like
-
getQualifiedName
JavaOperationQualifiedName getQualifiedName()
Description copied from interface:JavaQualifiableNode
Returns a qualified name for this node.- Specified by:
getQualifiedName
in interfaceJavaQualifiableNode
- Specified by:
getQualifiedName
in interfacenet.sourceforge.pmd.lang.ast.QualifiableNode
- Returns:
- A qualified name.
-
-