PTArrayCreation


This type is a class for model objects.

Array Creation expression, e.g. new int[3] or new java.langString[][] {{"a"}, {"b"}}

Package: instantiation
Supertype: PTExpression

Classifier ID:  -1
Instance class name:  * Unspecified *
Instance class:  * Unspecified *



Attributes Summary
type : EString The fully-qualified type, e.g. int[][] or java.lang.String[], including the number of dimension brackets.
dimensions : PTExpression * The list of expressions for the dimensions. You can have [3][4][] but [][33] is invalid. So for each dimension that has an expression, there will be an entry in the list, in the correct order. When you reach the empty dimensions, the list will end too.
initializer : PTArrayInitializer @ This is the initializer, if any, for this array. E.g. new int[] {2,3}. It is the {2,3}.



Attribute Details

type  -  The fully-qualified type, e.g. int[][] or java.lang.String[], including the number of dimension brackets.
    Data Type: EString
    Default value:  unspecified
    Required:  false
    Changeable:  true
    Unsettable:  false
    Many:  false
    Ordered:  true
    Lower bound:  0
    Upper bound:  1
    Unique:  true
    Derived:  false
    Transient:  false
    Volatile:  false

dimensions  -  The list of expressions for the dimensions. You can have [3][4][] but [][33] is invalid. So for each dimension that has an expression, there will be an entry in the list, in the correct order. When you reach the empty dimensions, the list will end too.
    Reference Type: PTExpression *
    Containment:  true
    Container:  false
    Required:  false
    Changeable:  true
    Unsettable:  false
    Many:  true
    Ordered:  true
    Lower bound:  0
    Upper bound:  Unbounded
    Unique:  true
    Derived:  false
    Transient:  false
    Volatile:  false

initializer  -  This is the initializer, if any, for this array. E.g. new int[] {2,3}. It is the {2,3}.
    Reference Type: PTArrayInitializer @
    Containment:  true
    Container:  false
    Required:  false
    Changeable:  true
    Unsettable:  false
    Many:  false
    Ordered:  true
    Lower bound:  0
    Upper bound:  1
    Unique:  true
    Derived:  false
    Transient:  false
    Volatile:  false



(C) COPYRIGHT International Business Machines Corp. 1996-2006