NewExpression

/**
* @brief A new expression.
*/

Inherit from Expression

Primary key: element_hash_id: int

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

NewExpression::getAnonymousClass

/**
* @brief gets the created anonymous class instance.
* @return AnonymousClass 
*/
pub fn getAnonymousClass(self: NewExpression) -> AnonymousClass;

NewExpression::getSize

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

NewExpression::getIndex

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

NewExpression::getParentHashId

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

NewExpression::getEnclosingStatement

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

NewExpression::getReference

/**
* @brief gets the created class instance.
* @return ReferenceElement 
*/
pub fn getReference(self: NewExpression) -> ReferenceElement;

NewExpression::getAnAncestor

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

NewExpression::getType

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

NewExpression::getParent

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

NewExpression::getLocationHashId

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

NewExpression::getPrintableText

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

NewExpression::getLocation

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

NewExpression::__all__

Data constraint method.

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

NewExpression::getEnclosingCallable

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