ArrayCreationExpression

/**
* @brief An array creation expression.
* For example, an expression such as `new String[2][3]` or
* `new String[][] { { "a", "b", "c" } , { "d", "e", "f" } }`.
*
* In both examples, `String` is the type name. In the first
* example, `2` and `3` are the 0th and 1st dimensions,
* respectively. In the second example,
* `{ { "a", "b", "c" } , { "d", "e", "f" } }` is the initializer.
*/

Inherit from Expression

Primary key: element_hash_id: int

schema ArrayCreationExpression extends Expression {
  @primary element_hash_id: int,
  name: string,
  parent_hash_id: int,
  index_order: int,
  location_hash_id: int,
  printable_text: string
}

ArrayCreationExpression::getParentHashId

/**
* @brief gets the parent hash id of this element.
* @return int
*/
pub fn getParentHashId(self: ArrayCreationExpression) -> int;

ArrayCreationExpression::getEnclosingStatement

/**
* @brief gets the statement which encloses the expression.
* @return Statement 
*/
pub fn getEnclosingStatement(self: ArrayCreationExpression) -> Statement;

ArrayCreationExpression::getSize

/**
* @brief gets the size information for the element.
* @return NumberOfLines
*/
pub fn getSize(self: ArrayCreationExpression) -> NumberOfLines;

ArrayCreationExpression::getAnInitializer

/**
* @brief gets the initializer of the array creation expression.
* @return ArrayInitializer
*/
pub fn getAnInitializer(self: ArrayCreationExpression) -> *ArrayInitializer;

ArrayCreationExpression::getDimension

/**
* @brief gets the dimension of the array creation expression.
* @return Expression 
*/
pub fn getDimension(self: ArrayCreationExpression, idx: int) -> Expression;

ArrayCreationExpression::getAnAncestor

/**
* @brief gets an ancestor of the element.
* @return ElementParent 
*/
pub fn getAnAncestor(self: ArrayCreationExpression) -> *ElementParent;

ArrayCreationExpression::getPrintableText

/**
* @brief gets a printed representation of this element, including its structure where applicable.
* @return string.
*/
pub fn getPrintableText(self: ArrayCreationExpression) -> string;

ArrayCreationExpression::getLocation

/**
* @brief gets the location for the element.
* @return Location
*/
pub fn getLocation(self: ArrayCreationExpression) -> Location;

ArrayCreationExpression::getEnclosingCallable

/**
* @brief gets the callable in which this expression occurs.
* @return Callable 
*/
pub fn getEnclosingCallable(self: ArrayCreationExpression) -> Callable;

ArrayCreationExpression::__all__

Data constraint method.

pub fn __all__(db: JavaDB) -> *ArrayCreationExpression;

ArrayCreationExpression::getType

/**
* @brief gets the type for the element.
* @return Type
*/
pub fn getType(self: ArrayCreationExpression) -> Type;

ArrayCreationExpression::getADimension

/**
* @brief gets a dimension of the array creation expression.
* @return Expression 
*/
pub fn getADimension(self: ArrayCreationExpression) -> *Expression;

ArrayCreationExpression::getIndex

/**
* @brief gets the index order of this element.
* @return int
*/
pub fn getIndex(self: ArrayCreationExpression) -> int;

ArrayCreationExpression::countArrayDimension

/**
* @brief counts the number of the array dimension of the array creation expression, 0 means it is an empty array.
* @return int 
*/
pub fn countArrayDimension(self: ArrayCreationExpression) -> int;

ArrayCreationExpression::getInitializerExpression

/**
* @brief gets the initializer expression of the array creation expression.
* @return ArrayInitializerExpression
*/
pub fn getInitializerExpression(self: ArrayCreationExpression) -> ArrayInitializerExpression;

ArrayCreationExpression::getParent

/**
* @brief gets the parent of the expression.
* @return ElementParent 
*/
pub fn getParent(self: ArrayCreationExpression) -> ElementParent;

ArrayCreationExpression::getLocationHashId

/**
* @brief gets the location hash id of this element.
* @return int
*/
pub fn getLocationHashId(self: ArrayCreationExpression) -> int;