Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Compiler Tree API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.source.tree
Interface NewClassTree

All Superinterfaces:
  ExpressionTree, Tree

    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 Also:
  "The Java Language Specification, 3rd ed, section 15.9"

Nested Class Summary

Nested classes/interfaces inherited from interface com.sun.source.tree.Tree
`Tree.Kind`

Method Summary
`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()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Compiler Tree API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Submit a bug or feature
Copyright © 2005, 2011, Oracle and/or its affiliates. All rights reserved.