WhileStatement

/**
* @brief A while statement.
*/

Inherit from Statement

Primary key: oid: int

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

WhileStatement::getIndexOrder

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

WhileStatement::getLocationOid

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

WhileStatement::getParentOid

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

WhileStatement::getEnclosingCallable

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

WhileStatement::__all__

Data constraint method.

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

WhileStatement::getPrintableText

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

WhileStatement::getLocation

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

WhileStatement::getAnAncestor

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

WhileStatement::getKindName

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

WhileStatement::getBodyStatement

/**
* @brief gets the body of this while loop.
* @return Statement 
*/
pub fn getBodyStatement(self: WhileStatement) -> Statement;

WhileStatement::getConditionExpression

/**
* @brief gets the boolean condition of this while loop.
* @return Expression 
*/
pub fn getConditionExpression(self: WhileStatement) -> Expression;

WhileStatement::getParent

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