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
*/
- Parameter
self
:IfStatement
- Return
int
pub fn getLocationOid(self: IfStatement) -> int;
IfStatement::getElseStatement
/**
* @brief Gets the ‘else’ statement of this ‘if’ statement, if any
* @return Statement
*/
- Parameter
self
:IfStatement
- Return
Statement
pub fn getElseStatement(self: IfStatement) -> Statement;
IfStatement::getKindName
/**
* @brief Statement kind name
* @return string
*/
- Parameter
self
:IfStatement
- Return
string
pub fn getKindName(self: IfStatement) -> string;
IfStatement::getParent
/**
* @brief gets the parent element of the statement
* @return ElementParent
*/
- Parameter
self
:IfStatement
- 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
*/
- Parameter
self
:IfStatement
- Return
Expression
pub fn getConditionExpression(self: IfStatement) -> Expression;
IfStatement::getThenStatement
/**
* @brief Gets the ‘then’ statement of this ‘if’ statement
* @return Statement
*/
- Parameter
self
:IfStatement
- Return
Statement
pub fn getThenStatement(self: IfStatement) -> Statement;
IfStatement::getIndexOrder
/**
* @brief gets the index order of this element.
* @return int
*/
- Parameter
self
:IfStatement
- Return
int
pub fn getIndexOrder(self: IfStatement) -> int;
IfStatement::getParentOid
/**
* @brief gets the parent oid of this element.
* @return int
*/
- Parameter
self
:IfStatement
- Return
int
pub fn getParentOid(self: IfStatement) -> int;
IfStatement::getEnclosingCallable
/**
* @brief gets the immediately enclosing callable whose body contains this statement.
* @return Callable
*/
- Parameter
self
:IfStatement
- Return
*Callable
pub fn getEnclosingCallable(self: IfStatement) -> *Callable;
IfStatement::__all__
Data constraint method.
- Parameter
db
:CfamilyDB
- Return
*IfStatement
pub fn __all__(db: CfamilyDB) -> *IfStatement;
IfStatement::getPrintableText
/**
* @brief gets a printed representation of this element, including its structure where applicable.
* @return string.
*/
- Parameter
self
:IfStatement
- Return
string
pub fn getPrintableText(self: IfStatement) -> string;
IfStatement::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
- Parameter
self
:IfStatement
- Return
Location
pub fn getLocation(self: IfStatement) -> Location;
IfStatement::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return ElementParent
*/
- Parameter
self
:IfStatement
- Return
*ElementParent
pub fn getAnAncestor(self: IfStatement) -> *ElementParent;