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
*/
- Parameter
self
:ArrayCreationExpression
- Return
int
pub fn getParentHashId(self: ArrayCreationExpression) -> int;
ArrayCreationExpression::getEnclosingStatement
/**
* @brief gets the statement which encloses the expression.
* @return Statement
*/
- Parameter
self
:ArrayCreationExpression
- Return
Statement
pub fn getEnclosingStatement(self: ArrayCreationExpression) -> Statement;
ArrayCreationExpression::getSize
/**
* @brief gets the size information for the element.
* @return NumberOfLines
*/
- Parameter
self
:ArrayCreationExpression
- Return
NumberOfLines
pub fn getSize(self: ArrayCreationExpression) -> NumberOfLines;
ArrayCreationExpression::getAnInitializer
/**
* @brief gets the initializer of the array creation expression.
* @return ArrayInitializer
*/
- Parameter
self
:ArrayCreationExpression
- Return
*ArrayInitializer
pub fn getAnInitializer(self: ArrayCreationExpression) -> *ArrayInitializer;
ArrayCreationExpression::getDimension
/**
* @brief gets the dimension of the array creation expression.
* @return Expression
*/
- Parameter
self
:ArrayCreationExpression
- Parameter
idx
:int
- Return
Expression
pub fn getDimension(self: ArrayCreationExpression, idx: int) -> Expression;
ArrayCreationExpression::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return ElementParent
*/
- Parameter
self
:ArrayCreationExpression
- 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.
*/
- Parameter
self
:ArrayCreationExpression
- Return
string
pub fn getPrintableText(self: ArrayCreationExpression) -> string;
ArrayCreationExpression::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
- Parameter
self
:ArrayCreationExpression
- Return
Location
pub fn getLocation(self: ArrayCreationExpression) -> Location;
ArrayCreationExpression::getEnclosingCallable
/**
* @brief gets the callable in which this expression occurs.
* @return Callable
*/
- Parameter
self
:ArrayCreationExpression
- Return
Callable
pub fn getEnclosingCallable(self: ArrayCreationExpression) -> Callable;
ArrayCreationExpression::__all__
Data constraint method.
- Parameter
db
:JavaDB
- Return
*ArrayCreationExpression
pub fn __all__(db: JavaDB) -> *ArrayCreationExpression;
ArrayCreationExpression::getType
/**
* @brief gets the type for the element.
* @return Type
*/
- Parameter
self
:ArrayCreationExpression
- Return
Type
pub fn getType(self: ArrayCreationExpression) -> Type;
ArrayCreationExpression::getADimension
/**
* @brief gets a dimension of the array creation expression.
* @return Expression
*/
- Parameter
self
:ArrayCreationExpression
- Return
*Expression
pub fn getADimension(self: ArrayCreationExpression) -> *Expression;
ArrayCreationExpression::getIndex
/**
* @brief gets the index order of this element.
* @return int
*/
- Parameter
self
:ArrayCreationExpression
- 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
*/
- Parameter
self
:ArrayCreationExpression
- Return
int
pub fn countArrayDimension(self: ArrayCreationExpression) -> int;
ArrayCreationExpression::getInitializerExpression
/**
* @brief gets the initializer expression of the array creation expression.
* @return ArrayInitializerExpression
*/
- Parameter
self
:ArrayCreationExpression
- Return
ArrayInitializerExpression
pub fn getInitializerExpression(self: ArrayCreationExpression) -> ArrayInitializerExpression;
ArrayCreationExpression::getParent
/**
* @brief gets the parent of the expression.
* @return ElementParent
*/
- Parameter
self
:ArrayCreationExpression
- Return
ElementParent
pub fn getParent(self: ArrayCreationExpression) -> ElementParent;
ArrayCreationExpression::getLocationHashId
/**
* @brief gets the location hash id of this element.
* @return int
*/
- Parameter
self
:ArrayCreationExpression
- Return
int
pub fn getLocationHashId(self: ArrayCreationExpression) -> int;