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
@Deprecated public interface MethodLikeNode extends AccessNode, JavaQualifiableNode, JavaNode
Deprecated.Lambda expressions should not be grouped with other kinds of method declarations, they have nothing in common. Giving them a qualified name is hacky and compiler-implementation-dependent. Ultimately this supertype is not useful and can go away.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 classMethodLikeNode.MethodLikeKindDeprecated.Same reason as forASTAnyTypeDeclaration.TypeKind
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description MethodLikeNode.MethodLikeKindgetKind()Deprecated.Same reason as forASTAnyTypeDeclaration.TypeKindJavaOperationQualifiedNamegetQualifiedName()Deprecated.Qualified names are not very useful objects.-
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
children, childrenAccept, getChild, getParent, jjtAccept, setScope
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, 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
@Deprecated MethodLikeNode.MethodLikeKind getKind()
Deprecated.Same reason as forASTAnyTypeDeclaration.TypeKindReturns 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
@Deprecated JavaOperationQualifiedName getQualifiedName()
Deprecated.Qualified names are not very useful objects. Use them to get a nice string for a method, but this is not goingDescription copied from interface:JavaQualifiableNodeReturns a qualified name for this node.- Specified by:
getQualifiedNamein interfaceJavaQualifiableNode- Specified by:
getQualifiedNamein interfacenet.sourceforge.pmd.lang.ast.QualifiableNode- Returns:
- A qualified name.
-
-