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