net.sourceforge.pmd.lang.ast.Node
, net.sourceforge.pmd.lang.ast.QualifiableNode
, AccessNode
, ASTAnyTypeDeclaration
, JavaNode
, JavaQualifiableNode
, TypeNode
, net.sourceforge.pmd.lang.symboltable.ScopedNode
public class ASTClassOrInterfaceDeclaration extends AbstractJavaAccessTypeNode implements ASTAnyTypeDeclaration
ASTAnyTypeDeclaration.TypeKind
parser
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
Constructor | Description |
---|---|
ASTClassOrInterfaceDeclaration(int id) |
|
ASTClassOrInterfaceDeclaration(JavaParser p,
int id) |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<ASTAnyTypeBodyDeclaration> |
getDeclarations() |
Retrieves the member declarations (fields, methods, classes, etc.) from the body of this type declaration.
|
JavaQualifiedName |
getQualifiedName() |
Returns a qualified name for this node.
|
ASTAnyTypeDeclaration.TypeKind |
getTypeKind() |
Finds the type kind of this declaration.
|
boolean |
isFindBoundary() |
|
boolean |
isInterface() |
|
boolean |
isLocal() |
Returns true if the class is declared inside a block other
than the body of another class, or the top level.
|
boolean |
isNested() |
|
java.lang.Object |
jjtAccept(JavaParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
void |
setInterface() |
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
getType, getTypeDefinition, setType, setTypeDefinition
childrenAccept, comment, comment, getScope, getXPathNodeName, jjtClose, jjtOpen, setScope
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, 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
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
childrenAccept, getScope, setScope
public ASTClassOrInterfaceDeclaration(int id)
public ASTClassOrInterfaceDeclaration(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 java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface JavaNode
jjtAccept
in class AbstractJavaNode
public boolean isNested()
public boolean isLocal()
public boolean isInterface()
public void setInterface()
public JavaQualifiedName getQualifiedName()
JavaQualifiableNode
getQualifiedName
in interface JavaQualifiableNode
getQualifiedName
in interface net.sourceforge.pmd.lang.ast.QualifiableNode
public ASTAnyTypeDeclaration.TypeKind getTypeKind()
ASTAnyTypeDeclaration
getTypeKind
in interface ASTAnyTypeDeclaration
public java.util.List<ASTAnyTypeBodyDeclaration> getDeclarations()
ASTAnyTypeDeclaration
getDeclarations
in interface ASTAnyTypeDeclaration
Copyright © 2002–2018 PMD. All rights reserved.