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 
*/
pub fn getAEnclosingStatement(self: BlockStatement) -> *Statement;

BlockStatement::getType

/**
* @brief gets the type of this element.
* @return string
*/
pub fn getType(self: BlockStatement) -> string;

BlockStatement::getEnclosingStatement

/**
* @brief gets the statement containing this statement.
* @return Statement 
*/
pub fn getEnclosingStatement(self: BlockStatement) -> Statement;

BlockStatement::getParentHashId

/**
* @brief gets the parent hash id of this element.
* @return int
*/
pub fn getParentHashId(self: BlockStatement) -> int;

BlockStatement::getAChild

/**
* @brief gets a child of this statement.
* @return Statement 
*/
pub fn getAChild(self: BlockStatement) -> *Statement;

BlockStatement::getIndex

/**
* @brief gets the index order of this element.
* @return int
*/
pub fn getIndex(self: BlockStatement) -> int;

BlockStatement::getNumberOfStatement

/**
* @brief gets the number of immediate child statements in this block.
* @return int 
*/
pub fn getNumberOfStatement(self: BlockStatement) -> int;

BlockStatement::getSize

/**
* @brief gets the size information for the element.
* @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 
*/
pub fn getEnclosingCallable(self: BlockStatement) -> Callable;

BlockStatement::getLocation

/**
* @brief gets the location for the element.
* @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.
*/
pub fn getPrintableText(self: BlockStatement) -> string;

BlockStatement::__all__

Data constraint method.

pub fn __all__(db: JavaDB) -> *BlockStatement;

BlockStatement::getAStatement

/**
* @brief gets a statement that is an immediate child of the block.
* @return Statement 
*/
pub fn getAStatement(self: BlockStatement) -> *Statement;

BlockStatement::getLastStatement

/**
* @brief description
* @return Statement 
*/
pub fn getLastStatement(self: BlockStatement) -> Statement;

BlockStatement::getCodeBlock

/**
* @brief gets the code block of the block statement.
* @return CodeBlock 
*/
pub fn getCodeBlock(self: BlockStatement) -> CodeBlock;

BlockStatement::getParent

/**
* @brief gets the parent element of the statement
* @return StatementParent 
*/
pub fn getParent(self: BlockStatement) -> ElementParent;

BlockStatement::getLocationHashId

/**
* @brief gets the location hash id of this element.
* @return int
*/
pub fn getLocationHashId(self: BlockStatement) -> int;

BlockStatement::getStatement

/**
* @brief gets a statement that is an immediate child of the block.
* @return Statement 
*/
pub fn getStatement(self: BlockStatement, idx: int) -> Statement;

BlockStatement::getAnAncestor

/**
* @brief gets an ancestor of the element.
* @return ElementParent 
*/
pub fn getAnAncestor(self: BlockStatement) -> *ElementParent;