Interface ClassExpressionTree

  • All Superinterfaces:
    ExpressionTree, Tree

    @Deprecated(since="11",
                forRemoval=true)
    public interface ClassExpressionTree
    extends ExpressionTree
    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 expression.
    Since:
    9
    • Method Detail

      • getName

        IdentifierTree getName()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Class identifier. Optional.
        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