Interface MethodLikeNode
-
- All Superinterfaces:
AccessNode
,JavaNode
,JavaQualifiableNode
,Node
,QualifiableNode
,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 class
MethodLikeNode.MethodLikeKind
Deprecated.Same reason as forASTAnyTypeDeclaration.TypeKind
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.lang.java.ast.AccessNode
ABSTRACT, DEFAULT, FINAL, NATIVE, NON_SEALED, PRIVATE, PROTECTED, PUBLIC, SEALED, STATIC, STRICTFP, SYNCHRONIZED, TRANSIENT, VOLATILE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description MethodLikeNode.MethodLikeKind
getKind()
Deprecated.Same reason as forASTAnyTypeDeclaration.TypeKind
JavaOperationQualifiedName
getQualifiedName()
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, getRoot, 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, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
Methods inherited from interface net.sourceforge.pmd.lang.symboltable.ScopedNode
getScope
-
-
-
-
Method Detail
-
getKind
@Deprecated MethodLikeNode.MethodLikeKind getKind()
Deprecated.Same reason as forASTAnyTypeDeclaration.TypeKind
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
@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:JavaQualifiableNode
Returns a qualified name for this node.- Specified by:
getQualifiedName
in interfaceJavaQualifiableNode
- Specified by:
getQualifiedName
in interfaceQualifiableNode
- Returns:
- A qualified name.
-
-