- All Superinterfaces:
ExpressionTree
,Tree
A tree node that represents a class expression.
- Since:
- 9
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionList
<? extends PropertyTree> Get other property definitions except for the constructor.The expression of theextends
clause.Get the constructor method definition.getName()
Class identifier.Methods inherited from interface org.openjdk.nashorn.api.tree.Tree
accept, getEndPosition, getKind, getStartPosition
-
Method Details
-
getName
IdentifierTree getName()Class identifier. Optional.- 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
-