com.sun.source.tree

## Interface NewClassTree

- All Superinterfaces:
    ExpressionTree, Tree

      @Exported
      public interface NewClassTree
      extends ExpressionTree

  A tree node to declare a new instance of a class. For example:

         new identifier ( )

         new identifier ( arguments )

         new typeArguments identifier ( arguments )
             classBody

         enclosingExpression.new identifier ( arguments )

  Since:
    1.6
  See The Java™ Language Specification:
    section 15.9

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.sun.source.tree.Tree

      `Tree.Kind`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<? extends ExpressionTree>` | `getArguments()`
    `ClassTree` | `getClassBody()`
    `ExpressionTree` | `getEnclosingExpression()`
    `ExpressionTree` | `getIdentifier()`
    `List<? extends Tree>` | `getTypeArguments()`

    - ### Methods inherited from interface com.sun.source.tree.Tree

      `accept, getKind`

- - ### Method Detail

    - #### getEnclosingExpression

          ExpressionTree getEnclosingExpression()

    - #### getTypeArguments

          List<? extends Tree> getTypeArguments()

    - #### getIdentifier

          ExpressionTree getIdentifier()

    - #### getArguments

          List<? extends ExpressionTree> getArguments()

    - #### getClassBody

          ClassTree getClassBody()

Copyright © 2005, 2015, Oracle and/or its affiliates. All rights reserved.