ExpressionParent

/**
* @brief A ast parent of an expression.
*/

Inherit from ElementParent

Primary key: id: int

schema ExpressionParent extends ElementParent {
  @primary id: int
}

ExpressionParent::getAnAncestorForIndex

/**
* @brief gets the index for printing AST.
* @return int 
*/
pub fn getAnAncestorForIndex(self: ExpressionParent, index: int) -> ElementParent;

ExpressionParent::getAnAncestor

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

ExpressionParent::getLocation

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

ExpressionParent::print

/**
* @brief gets the printable text for printing AST
* @return string 
*/
pub fn print(self: ExpressionParent) -> string;

ExpressionParent::__all__

Data constraint method.

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

ExpressionParent::getType

/**
* @brief gets the type of the element for printing AST.
* @return string 
*/
pub fn getType(self: ExpressionParent) -> string;

ExpressionParent::getChild

/**
* @brief get a child expression of the element. 
* @return Expression 
*/
pub fn getChild(self: ExpressionParent) -> *Expression;

ExpressionParent::getElementParent

/**
* @brief gets the parent of the element.
* @return ElementParent 
*/
pub fn getElementParent(self: ExpressionParent) -> ElementParent;