Interface ASTAnyTypeDeclaration
-
- All Superinterfaces:
AccessNode
,JavaNode
,JavaQualifiableNode
,net.sourceforge.pmd.lang.ast.Node
,net.sourceforge.pmd.lang.ast.QualifiableNode
,net.sourceforge.pmd.lang.symboltable.ScopedNode
,TypeNode
- All Known Implementing Classes:
AbstractAnyTypeDeclaration
,ASTAnnotationTypeDeclaration
,ASTClassOrInterfaceDeclaration
,ASTEnumDeclaration
public interface ASTAnyTypeDeclaration extends TypeNode, JavaQualifiableNode, AccessNode, JavaNode
Groups enum, class, annotation and interface declarations.- Author:
- Clément Fournier
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ASTAnyTypeDeclaration.TypeKind
The kind of type this node declares.
-
Method Summary
All Methods Instance Methods Abstract Methods 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.JavaTypeQualifiedName
getQualifiedName()
Returns a qualified name for this node.ASTAnyTypeDeclaration.TypeKind
getTypeKind()
Finds the type kind of this declaration.boolean
isNested()
Returns true if this type declaration is nested inside an interface, class or annotation.-
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
childrenAccept, getScope, jjtAccept, setScope
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, 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.java.ast.TypeNode
getType, getTypeDefinition, setType, setTypeDefinition
-
-
-
-
Method Detail
-
getTypeKind
ASTAnyTypeDeclaration.TypeKind getTypeKind()
Finds the type kind of this declaration.- Returns:
- The type kind of this declaration.
-
getDeclarations
java.util.List<ASTAnyTypeBodyDeclaration> getDeclarations()
Retrieves the member declarations (fields, methods, classes, etc.) from the body of this type declaration.- Returns:
- The member declarations declared in this type declaration
-
getQualifiedName
JavaTypeQualifiedName getQualifiedName()
Description copied from interface:JavaQualifiableNode
Returns a qualified name for this node.- Specified by:
getQualifiedName
in interfaceJavaQualifiableNode
- Specified by:
getQualifiedName
in interfacenet.sourceforge.pmd.lang.ast.QualifiableNode
- Returns:
- A qualified name.
-
isNested
boolean isNested()
Returns true if this type declaration is nested inside an interface, class or annotation.
-
-