StatementTree
, Tree
public interface ClassTree extends StatementTree
modifiers class simpleName typeParameters extends extendsClause implements implementsClause { members }
Modifier and Type | Method | Description |
---|---|---|
Tree |
getExtendsClause() |
Returns the supertype of this type declaration, or null if none is provided. |
List |
getImplementsClause() |
Returns the interfaces implemented by this type declaration. |
List |
getMembers() |
Returns the members declared in this type declaration. |
ModifiersTree |
getModifiers() |
Returns the modifiers, including any annotations, for this type declaration. |
default List |
getPermitsClause() |
Returns the subclasses permitted by this type declaration. |
Name |
getSimpleName() |
Returns the simple name of this type declaration. |
List |
getTypeParameters() |
Returns any type parameters of this type declaration. |
ModifiersTree getModifiers()
Name getSimpleName()
List<? extends TypeParameterTree> getTypeParameters()
Tree getExtendsClause()
null
if none is provided.List<? extends Tree> getImplementsClause()
default List<? extends Tree> getPermitsClause()
List<? extends Tree> getMembers()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.compiler/com/sun/source/tree/ClassTree.html