BlockStatement
/**
* @brief A block statement (sequence of statements surrounded with curly braces).
*/
Inherit from Statement
Primary key: element_hash_id: int
schema BlockStatement extends Statement {
@primary element_hash_id: int,
parent_hash_id: int,
index_order: int,
location_hash_id: int,
printable_text: string,
type: string
}
BlockStatement::getAEnclosingStatement
/**
* @brief gets the transitive statement containing this statement.
* @return Statement
*/
- Parameter
self
:BlockStatement
- Return
*Statement
pub fn getAEnclosingStatement(self: BlockStatement) -> *Statement;
BlockStatement::getType
/**
* @brief gets the type of this element.
* @return string
*/
- Parameter
self
:BlockStatement
- Return
string
pub fn getType(self: BlockStatement) -> string;
BlockStatement::getEnclosingStatement
/**
* @brief gets the statement containing this statement.
* @return Statement
*/
- Parameter
self
:BlockStatement
- Return
Statement
pub fn getEnclosingStatement(self: BlockStatement) -> Statement;
BlockStatement::getParentHashId
/**
* @brief gets the parent hash id of this element.
* @return int
*/
- Parameter
self
:BlockStatement
- Return
int
pub fn getParentHashId(self: BlockStatement) -> int;
BlockStatement::getAChild
/**
* @brief gets a child of this statement.
* @return Statement
*/
- Parameter
self
:BlockStatement
- Return
*Statement
pub fn getAChild(self: BlockStatement) -> *Statement;
BlockStatement::getIndex
/**
* @brief gets the index order of this element.
* @return int
*/
- Parameter
self
:BlockStatement
- Return
int
pub fn getIndex(self: BlockStatement) -> int;
BlockStatement::getNumberOfStatement
/**
* @brief gets the number of immediate child statements in this block.
* @return int
*/
- Parameter
self
:BlockStatement
- Return
int
pub fn getNumberOfStatement(self: BlockStatement) -> int;
BlockStatement::getSize
/**
* @brief gets the size information for the element.
* @return NumberOfLines
*/
- Parameter
self
:BlockStatement
- Return
NumberOfLines
pub fn getSize(self: BlockStatement) -> NumberOfLines;
BlockStatement::getEnclosingCallable
/**
* @brief gets the immediately enclosing callable (method or constructor) whose body contains this statement.
* @return Callable
*/
- Parameter
self
:BlockStatement
- Return
Callable
pub fn getEnclosingCallable(self: BlockStatement) -> Callable;
BlockStatement::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
- Parameter
self
:BlockStatement
- Return
Location
pub fn getLocation(self: BlockStatement) -> Location;
BlockStatement::getPrintableText
/**
* @brief gets a printed representation of this element, including its structure where applicable.
* @return string.
*/
- Parameter
self
:BlockStatement
- Return
string
pub fn getPrintableText(self: BlockStatement) -> string;
BlockStatement::__all__
Data constraint method.
- Parameter
db
:JavaDB
- Return
*BlockStatement
pub fn __all__(db: JavaDB) -> *BlockStatement;
BlockStatement::getAStatement
/**
* @brief gets a statement that is an immediate child of the block.
* @return Statement
*/
- Parameter
self
:BlockStatement
- Return
*Statement
pub fn getAStatement(self: BlockStatement) -> *Statement;
BlockStatement::getLastStatement
/**
* @brief description
* @return Statement
*/
- Parameter
self
:BlockStatement
- Return
Statement
pub fn getLastStatement(self: BlockStatement) -> Statement;
BlockStatement::getCodeBlock
/**
* @brief gets the code block of the block statement.
* @return CodeBlock
*/
- Parameter
self
:BlockStatement
- Return
CodeBlock
pub fn getCodeBlock(self: BlockStatement) -> CodeBlock;
BlockStatement::getParent
/**
* @brief gets the parent element of the statement
* @return StatementParent
*/
- Parameter
self
:BlockStatement
- Return
ElementParent
pub fn getParent(self: BlockStatement) -> ElementParent;
BlockStatement::getLocationHashId
/**
* @brief gets the location hash id of this element.
* @return int
*/
- Parameter
self
:BlockStatement
- Return
int
pub fn getLocationHashId(self: BlockStatement) -> int;
BlockStatement::getStatement
/**
* @brief gets a statement that is an immediate child of the block.
* @return Statement
*/
- Parameter
self
:BlockStatement
- Parameter
idx
:int
- Return
Statement
pub fn getStatement(self: BlockStatement, idx: int) -> Statement;
BlockStatement::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return ElementParent
*/
- Parameter
self
:BlockStatement
- Return
*ElementParent
pub fn getAnAncestor(self: BlockStatement) -> *ElementParent;