Interface NewClassTree

All Superinterfaces:
ExpressionTree, Tree
All Known Implementing Classes:
NewClassTreeImpl

@Beta public interface NewClassTree extends ExpressionTree
Class instance creation expression. JLS 15.9
   new identifier() ( )
   new identifier() ( arguments() )
   new typeArguments() identifier() ( arguments() ) classBody()
   enclosingExpression() . new identifier() ( arguments() )
 
Since:
Java 1.3
  • Method Details

    • enclosingExpression

      @Nullable ExpressionTree enclosingExpression()
    • dotToken

      @Nullable SyntaxToken dotToken()
      "dot" is not null only when the enclosing expression is present
    • newKeyword

      @Nullable SyntaxToken newKeyword()
      "new" keyword is null for #initializer()
    • typeArguments

      @Nullable TypeArguments typeArguments()
      Since:
      Java 1.5
    • identifier

      TypeTree identifier()
    • arguments

      Arguments arguments()
    • classBody

      @Nullable ClassTree classBody()
    • constructorSymbol

      Symbol constructorSymbol()