- All Superinterfaces:
- StatementTree,- Tree
A tree node for a class, interface, enum, record, or annotation
 type declaration.
 For example:
 
   modifiers class simpleName typeParameters
       extends extendsClause
       implements implementsClause
   {
       members
   }
 - See Java Language Specification:
- 
8.1 Class Declarations
 8.9 Enum Types
 8.10 Record Types
 9.1 Interface Declarations
 9.6 Annotation Types
- Since:
- 1.6
- 
Nested Class Summary
- 
Method SummaryModifier and TypeMethodDescriptionReturns the supertype of this type declaration, ornullif none is provided.Returns the interfaces implemented by this type declaration.Returns the members declared in this type declaration.Returns the modifiers, including any annotations, for this type declaration.Returns the subclasses permitted by this type declaration.Returns the simple name of this type declaration.List<? extends TypeParameterTree>Returns any type parameters of this type declaration.
- 
Method Details- 
getModifiersModifiersTree getModifiers()Returns the modifiers, including any annotations, for this type declaration.- Returns:
- the modifiers
 
- 
getSimpleNameName getSimpleName()Returns the simple name of this type declaration.- Returns:
- the simple name
 
- 
getTypeParametersList<? extends TypeParameterTree> getTypeParameters()Returns any type parameters of this type declaration.- Returns:
- the type parameters
 
- 
getExtendsClauseTree getExtendsClause()Returns the supertype of this type declaration, ornullif none is provided.- Returns:
- the supertype
 
- 
getImplementsClauseReturns the interfaces implemented by this type declaration.- Returns:
- the interfaces
 
- 
getPermitsClauseReturns the subclasses permitted by this type declaration.- Implementation Requirements:
- this implementation returns an empty list
- Returns:
- the subclasses
- Since:
- 17
 
- 
getMembersReturns the members declared in this type declaration.- Returns:
- the members
 
 
-