-
- All Superinterfaces:
StatementTree
,Tree
public interface ClassDeclarationTree extends StatementTree
A tree node that represents a class declaration.- Since:
- 9
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<? extends PropertyTree>
getClassElements()
Get other property definitions except for the constructor.ExpressionTree
getClassHeritage()
The expression of theextends
clause.PropertyTree
getConstructor()
Get the constructor method definition.IdentifierTree
getName()
Class identifier.-
Methods inherited from interface jdk.nashorn.api.tree.Tree
accept, getEndPosition, getKind, getStartPosition
-
-
-
-
Method Detail
-
getName
IdentifierTree getName()
Class identifier.- Returns:
- the class identifier
-
getClassHeritage
ExpressionTree getClassHeritage()
The expression of theextends
clause. Optional.- Returns:
- the class heritage
-
getConstructor
PropertyTree getConstructor()
Get the constructor method definition.- Returns:
- the constructor
-
getClassElements
List<? extends PropertyTree> getClassElements()
Get other property definitions except for the constructor.- Returns:
- the class elements
-
-