Interface ASTAnyTypeBodyDeclaration
-
- All Superinterfaces:
JavaNode
,Node
,ScopedNode
- All Known Implementing Classes:
ASTAnnotationTypeMemberDeclaration
,ASTClassOrInterfaceBodyDeclaration
,ASTCompactConstructorDeclaration
public interface ASTAnyTypeBodyDeclaration extends JavaNode
Marker interface for type body declarations, such as annotation members, field or method declarations.- Author:
- Clément Fournier
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ASTAnyTypeBodyDeclaration.DeclarationKind
Kind of declaration.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JavaNode
getDeclarationNode()
Returns the child of this declaration, which can be cast to a more specific node type usinggetKind()
as a cue.ASTAnyTypeBodyDeclaration.DeclarationKind
getKind()
Gets the kind of declaration this node contains.-
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
-
getDeclarationNode
JavaNode getDeclarationNode()
Returns the child of this declaration, which can be cast to a more specific node type usinggetKind()
as a cue.Returns null if this is an empty declaration, that is, a single semicolon.
-
getKind
ASTAnyTypeBodyDeclaration.DeclarationKind getKind()
Gets the kind of declaration this node contains. This is a cue for the node type the child of this declaration can be cast to.
-
-