net.sourceforge.pmd.lang.ast.Node
, ASTAnyTypeBodyDeclaration
, CanSuppressWarnings
, JavaNode
, net.sourceforge.pmd.lang.symboltable.ScopedNode
public class ASTClassOrInterfaceBodyDeclaration extends AbstractJavaNode implements CanSuppressWarnings, ASTAnyTypeBodyDeclaration
ASTAnyTypeBodyDeclaration.DeclarationKind
parser
Constructor | Description |
---|---|
ASTClassOrInterfaceBodyDeclaration(int id) |
|
ASTClassOrInterfaceBodyDeclaration(JavaParser p,
int id) |
Modifier and Type | Method | Description |
---|---|---|
JavaNode |
getDeclarationNode() |
Returns the child of this declaration,
which can be cast to a more specific node
type using
ASTAnyTypeBodyDeclaration.getKind() as a cue. |
ASTAnyTypeBodyDeclaration.DeclarationKind |
getKind() |
Gets the kind of declaration this node contains.
|
boolean |
hasSuppressWarningsAnnotationFor(net.sourceforge.pmd.Rule rule) |
|
boolean |
isAnonymousInnerClass() |
|
boolean |
isEnumChild() |
|
boolean |
isFindBoundary() |
|
java.lang.Object |
jjtAccept(JavaParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
childrenAccept, comment, comment, getScope, getXPathNodeName, jjtClose, jjtOpen, setScope
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
getDeclarationNode, getKind
childrenAccept, getScope, setScope
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
public ASTClassOrInterfaceBodyDeclaration(int id)
public ASTClassOrInterfaceBodyDeclaration(JavaParser p, int id)
public boolean isFindBoundary()
isFindBoundary
in interface net.sourceforge.pmd.lang.ast.Node
isFindBoundary
in class net.sourceforge.pmd.lang.ast.AbstractNode
public boolean hasSuppressWarningsAnnotationFor(net.sourceforge.pmd.Rule rule)
hasSuppressWarningsAnnotationFor
in interface CanSuppressWarnings
public java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface JavaNode
jjtAccept
in class AbstractJavaNode
public boolean isAnonymousInnerClass()
public boolean isEnumChild()
public JavaNode getDeclarationNode()
ASTAnyTypeBodyDeclaration
ASTAnyTypeBodyDeclaration.getKind()
as a cue.
Returns null if this is an empty declaration, that is, a single semicolon.
getDeclarationNode
in interface ASTAnyTypeBodyDeclaration
public ASTAnyTypeBodyDeclaration.DeclarationKind getKind()
ASTAnyTypeBodyDeclaration
getKind
in interface ASTAnyTypeBodyDeclaration
Copyright © 2002–2018 PMD. All rights reserved.