Class Dimension

java.lang.Object
org.eclipse.jdt.core.dom.ASTNode
org.eclipse.jdt.core.dom.Dimension

public class Dimension extends ASTNode
AST node for an array dimension (added in JLS8 API).

A dimension, represented as [], can have type annotations. The dimension node is used for:

 Dimension:
        { Annotation } []
 
Since:
3.10
Restriction:
This class is not intended to be instantiated by clients.
  • Field Details

  • Method Details

    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel)
      Returns a list of structural property descriptors for this node type. Clients must not modify the result.
      Parameters:
      apiLevel - the API level; one of the AST.JLS* constants
      Returns:
      a list of property descriptors (element type: StructuralPropertyDescriptor)
    • annotations

      public List annotations()
      Returns the live ordered list of annotations for this dimension.
      Returns:
      the live list of annotations (element type: Annotation)