IfStatement

/**
* @brief A if statement.
*/

Inherit from Statement

Primary key: oid: int

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

IfStatement::getLocationOid

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

IfStatement::getElseStatement

/**
* @brief Gets the ‘else’ statement of this ‘if’ statement, if any
* @return Statement
*/
pub fn getElseStatement(self: IfStatement) -> Statement;

IfStatement::getKindName

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

IfStatement::getParent

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

IfStatement::getConditionExpression

/**
* @brief Gets the condition of this ‘if’ statement, the condition is an expression.
* @return Expression
*/
pub fn getConditionExpression(self: IfStatement) -> Expression;

IfStatement::getThenStatement

/**
* @brief Gets the ‘then’ statement of this ‘if’ statement
* @return Statement
*/
pub fn getThenStatement(self: IfStatement) -> Statement;

IfStatement::getIndexOrder

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

IfStatement::getParentOid

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

IfStatement::getEnclosingCallable

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

IfStatement::__all__

Data constraint method.

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

IfStatement::getPrintableText

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

IfStatement::getLocation

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

IfStatement::getAnAncestor

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