ConditionalStatement
/** * @brief A conditional statement, including if, for, foreach, while and do-while statements. */
Inherit from Statement
Primary key: element_hash_id: int
schema ConditionalStatement extends Statement { @primary element_hash_id: int, parent_hash_id: int, index_order: int, location_hash_id: int, printable_text: string, type: string }
ConditionalStatement::getAEnclosingStatement
/** * @brief gets the transitive statement containing this statement. * @return Statement */
- Parameter
self
:ConditionalStatement
- Return
*Statement
pub fn getAEnclosingStatement(self: ConditionalStatement) -> *Statement;
ConditionalStatement::getType
/** * @brief gets the type of this element. * @return string */
- Parameter
self
:ConditionalStatement
- Return
string
pub fn getType(self: ConditionalStatement) -> string;
ConditionalStatement::getEnclosingStatement
/** * @brief gets the statement containing this statement. * @return Statement */
- Parameter
self
:ConditionalStatement
- Return
Statement
pub fn getEnclosingStatement(self: ConditionalStatement) -> Statement;
ConditionalStatement::getParentHashId
/** * @brief gets the parent hash id of this element. * @return int */
- Parameter
self
:ConditionalStatement
- Return
int
pub fn getParentHashId(self: ConditionalStatement) -> int;
ConditionalStatement::getParent
/** * @brief gets the parent element of the statement * @return StatementParent */
- Parameter
self
:ConditionalStatement
- Return
ElementParent
pub fn getParent(self: ConditionalStatement) -> ElementParent;
ConditionalStatement::getLocationHashId
/** * @brief gets the location hash id of this element. * @return int */
- Parameter
self
:ConditionalStatement
- Return
int
pub fn getLocationHashId(self: ConditionalStatement) -> int;
ConditionalStatement::getIndex
/** * @brief gets the index order of this element. * @return int */
- Parameter
self
:ConditionalStatement
- Return
int
pub fn getIndex(self: ConditionalStatement) -> int;
ConditionalStatement::getCondition
/** * @brief gets the boolean condition of the conditional statement. * @return Expression */
- Parameter
self
:ConditionalStatement
- Return
Expression
pub fn getCondition(self: ConditionalStatement) -> Expression;
ConditionalStatement::getSize
/** * @brief gets the size information for the element. * @return NumberOfLines */
- Parameter
self
:ConditionalStatement
- Return
NumberOfLines
pub fn getSize(self: ConditionalStatement) -> NumberOfLines;
ConditionalStatement::getAnAncestor
/** * @brief gets an ancestor of the element. * @return ElementParent */
- Parameter
self
:ConditionalStatement
- Return
*ElementParent
pub fn getAnAncestor(self: ConditionalStatement) -> *ElementParent;
ConditionalStatement::__all__
Data constraint method.
- Parameter
db
:JavaDB
- Return
*ConditionalStatement
pub fn __all__(db: JavaDB) -> *ConditionalStatement;
ConditionalStatement::getLocation
/** * @brief gets the location for the element. * @return Location */
- Parameter
self
:ConditionalStatement
- Return
Location
pub fn getLocation(self: ConditionalStatement) -> Location;
ConditionalStatement::getPrintableText
/** * @brief gets a printed representation of this element, including its structure where applicable. * @return string. */
- Parameter
self
:ConditionalStatement
- Return
string
pub fn getPrintableText(self: ConditionalStatement) -> string;
ConditionalStatement::getEnclosingCallable
/** * @brief gets the immediately enclosing callable (method or constructor) whose body contains this statement. * @return Callable */
- Parameter
self
:ConditionalStatement
- Return
Callable
pub fn getEnclosingCallable(self: ConditionalStatement) -> Callable;
ConditionalStatement::getAChild
/** * @brief gets a child of this statement. * @return Statement */
- Parameter
self
:ConditionalStatement
- Return
*Statement
pub fn getAChild(self: ConditionalStatement) -> *Statement;