NewArrayTree (Compiler Tree API )
Keywords: com.sun.source.tree.NewArrayTree interface
Date: 2020-03-26

com.sun.source.tree

## Interface NewArrayTree

- All Superinterfaces:
    ExpressionTree, Tree

      @Exported
      public interface NewArrayTree
      extends ExpressionTree

  A tree node for an expression to create a new instance of an array. For example:

         new type dimensions initializers

         new type dimensions [ ] initializers

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

- - ### 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 AnnotationTree>` | `getAnnotations()`
    `List<? extends List<? extends AnnotationTree>>` | `getDimAnnotations()`
    `List<? extends ExpressionTree>` | `getDimensions()`
    `List<? extends ExpressionTree>` | `getInitializers()`
    `Tree` | `getType()`

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

      `accept, getKind`

- - ### Method Detail

    - #### getType

          Tree getType()

    - #### getDimensions

          List<? extends ExpressionTree> getDimensions()

    - #### getInitializers

          List<? extends ExpressionTree> getInitializers()

    - #### getAnnotations

          List<? extends AnnotationTree> getAnnotations()

    - #### getDimAnnotations

          List<? extends List<? extends AnnotationTree>> getDimAnnotations()

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