Statement

/**
* @brief A super class for all statements.
*/

Inherit from StatementDO

Primary key: oid: int

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

Statement::getLocationOid

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

Statement::getIndexOrder

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

Statement::getParentOid

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

Statement::getPrintableText

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

Statement::__all__

Data constraint method.

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

Statement::getLocation

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

Statement::getAnAncestor

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

Statement::getKindName

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

Statement::getParent

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

Statement::getEnclosingCallable

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