IfStatement
/**
* @brief A if statement.
*/
Inherit from Statement
Primary key: element_hash_id: int
schema IfStatement extends Statement {
@primary element_hash_id: int,
parent_hash_id: int,
index_order: int,
location_hash_id: int,
printable_text: string,
type: string
}
IfStatement::getAEnclosingStatement
/**
* @brief gets the transitive statement containing this statement.
* @return Statement
*/
- Parameter
self
:IfStatement
- Return
*Statement
pub fn getAEnclosingStatement(self: IfStatement) -> *Statement;
IfStatement::getType
/**
* @brief gets the type of this element.
* @return string
*/
- Parameter
self
:IfStatement
- Return
string
pub fn getType(self: IfStatement) -> string;
IfStatement::getEnclosingStatement
/**
* @brief gets the statement containing this statement.
* @return Statement
*/
- Parameter
self
:IfStatement
- Return
Statement
pub fn getEnclosingStatement(self: IfStatement) -> Statement;
IfStatement::getParentHashId
/**
* @brief gets the parent hash id of this element.
* @return int
*/
- Parameter
self
:IfStatement
- Return
int
pub fn getParentHashId(self: IfStatement) -> int;
IfStatement::getAChild
/**
* @brief gets a child of this statement.
* @return Statement
*/
- Parameter
self
:IfStatement
- Return
*Statement
pub fn getAChild(self: IfStatement) -> *Statement;
IfStatement::getIndex
/**
* @brief gets the index order of this element.
* @return int
*/
- Parameter
self
:IfStatement
- Return
int
pub fn getIndex(self: IfStatement) -> int;
IfStatement::getConsequent
/**
* @brief get the statement that is executed whenever the condition of this branch evaluates to true.
* @return Statement
*/
- Parameter
self
:IfStatement
- Return
Statement
pub fn getConsequent(self: IfStatement) -> Statement;
IfStatement::getAlternate
/**
* @brief gets the else branch of this if statement.
* @return Statement
*/
- Parameter
self
:IfStatement
- Return
Statement
pub fn getAlternate(self: IfStatement) -> Statement;
IfStatement::getCondition
/**
* @brief gets the boolean condition of this if statement.
* @return Expression
*/
- Parameter
self
:IfStatement
- Return
Expression
pub fn getCondition(self: IfStatement) -> Expression;
IfStatement::getParent
/**
* @brief gets the parent element of the statement
* @return StatementParent
*/
- Parameter
self
:IfStatement
- Return
ElementParent
pub fn getParent(self: IfStatement) -> ElementParent;
IfStatement::getLocationHashId
/**
* @brief gets the location hash id of this element.
* @return int
*/
- Parameter
self
:IfStatement
- Return
int
pub fn getLocationHashId(self: IfStatement) -> int;
IfStatement::getSize
/**
* @brief gets the size information for the element.
* @return NumberOfLines
*/
- Parameter
self
:IfStatement
- Return
NumberOfLines
pub fn getSize(self: IfStatement) -> NumberOfLines;
IfStatement::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return ElementParent
*/
- Parameter
self
:IfStatement
- Return
*ElementParent
pub fn getAnAncestor(self: IfStatement) -> *ElementParent;
IfStatement::getEnclosingCallable
/**
* @brief gets the immediately enclosing callable (method or constructor) 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
:JavaDB
- Return
*IfStatement
pub fn __all__(db: JavaDB) -> *IfStatement;
IfStatement::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
- Parameter
self
:IfStatement
- Return
Location
pub fn getLocation(self: IfStatement) -> Location;
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;