net.sourceforge.pmd.lang.ast.Node, ASTAnyTypeBodyDeclaration, CanSuppressWarnings, JavaNode, net.sourceforge.pmd.lang.symboltable.ScopedNodepublic class ASTClassOrInterfaceBodyDeclaration extends AbstractJavaNode implements CanSuppressWarnings, ASTAnyTypeBodyDeclaration
ASTAnyTypeBodyDeclaration.DeclarationKindparser| 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, setScopeappendElement, 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, toStringgetDeclarationNode, getKindchildrenAccept, getScope, setScopefindChildNodesWithXPath, 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, setUserDatapublic ASTClassOrInterfaceBodyDeclaration(int id)
public ASTClassOrInterfaceBodyDeclaration(JavaParser p, int id)
public boolean isFindBoundary()
isFindBoundary in interface net.sourceforge.pmd.lang.ast.NodeisFindBoundary in class net.sourceforge.pmd.lang.ast.AbstractNodepublic boolean hasSuppressWarningsAnnotationFor(net.sourceforge.pmd.Rule rule)
hasSuppressWarningsAnnotationFor in interface CanSuppressWarningspublic java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
jjtAccept in interface JavaNodejjtAccept in class AbstractJavaNodepublic boolean isAnonymousInnerClass()
public boolean isEnumChild()
public JavaNode getDeclarationNode()
ASTAnyTypeBodyDeclarationASTAnyTypeBodyDeclaration.getKind() as a cue.
Returns null if this is an empty declaration, that is, a single semicolon.
getDeclarationNode in interface ASTAnyTypeBodyDeclarationpublic ASTAnyTypeBodyDeclaration.DeclarationKind getKind()
ASTAnyTypeBodyDeclarationgetKind in interface ASTAnyTypeBodyDeclarationCopyright © 2002–2018 PMD. All rights reserved.