Expression

/**
* @brief An expression.
*/

Inherit from ValueStatement

Primary key: oid: int

schema Expression extends ValueStatement {
  @primary oid: int,
  parent_oid: int,
  index_order: int,
  location_oid: int,
  kind_name: string,
  printable_text: string
}

Expression::getPrintableText

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

Expression::getParentOid

/**
* @brief gets the parent oid of this element.
* @return int
*/
pub fn getParentOid(self: Expression) -> int;

Expression::getIndexOrder

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

Expression::getLocationOid

/**
* @brief gets the location oid of this element.
* @return int
*/
pub fn getLocationOid(self: Expression) -> int;

Expression::getEnclosingCallable

/**
* @brief gets the immediately enclosing callable whose body contains this statement.
* @return Callable 
*/
pub fn getEnclosingCallable(self: Expression) -> *Callable;

Expression::__all__

Data constraint method.

pub fn __all__(db: CfamilyDB) -> *Expression;

Expression::getLocation

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

Expression::getAnAncestor

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

Expression::getParent

/**
* @brief gets the parent element of the statement
* @return ElementParent
*/
pub fn getParent(self: Expression) -> ElementParent;

Expression::getKindName

/**
* @brief Statement kind name
* @return string
*/
pub fn getKindName(self: Expression) -> string;