Interface ClassDeclarationTree

  • All Superinterfaces:
    StatementTree, Tree

    @Deprecated(since="11",
                forRemoval=true)
    public interface ClassDeclarationTree
    extends StatementTree
    Deprecated, for removal: This API element is subject to removal in a future version.
    Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.
    A tree node that represents a class declaration.
    Since:
    9
    • Method Detail

      • getName

        IdentifierTree getName()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Class identifier.
        Returns:
        the class identifier
      • getClassHeritage

        ExpressionTree getClassHeritage()
        Deprecated, for removal: This API element is subject to removal in a future version.
        The expression of the extends clause. Optional.
        Returns:
        the class heritage
      • getConstructor

        PropertyTree getConstructor()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Get the constructor method definition.
        Returns:
        the constructor
      • getClassElements

        List<? extends PropertyTree> getClassElements()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Get other property definitions except for the constructor.
        Returns:
        the class elements