Interface ClassDeclarationTree

All Superinterfaces:
StatementTree, Tree

public interface ClassDeclarationTree extends StatementTree
A tree node that represents a class declaration.
Since:
9
  • Method Details

    • getName

      IdentifierTree getName()
      Class identifier.
      Returns:
      the class identifier
    • getClassHeritage

      ExpressionTree getClassHeritage()
      The expression of the extends 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