TryStatement

/**
* @brief A try ... catch ... finally statement
*/

Inherit from Statement

Primary key: element_hash_id: int

schema TryStatement extends Statement {
  @primary element_hash_id: int,
  parent_hash_id: int,
  index_order: int,
  location_hash_id: int,
  printable_text: string,
  type: string
}

TryStatement::getAEnclosingStatement

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

TryStatement::getType

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

TryStatement::getEnclosingStatement

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

TryStatement::getParentHashId

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

TryStatement::getAChild

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

TryStatement::getAnAncestor

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

TryStatement::getCatchBlock

/**
* @brief gets the catch clause of the try statement.
* @return CatchClauseStatement 
*/
pub fn getCatchBlock(self: TryStatement) -> *CatchClause;

TryStatement::getEnclosingCallable

/**
* @brief gets the immediately enclosing callable (method or constructor) whose body contains this statement.
* @return Callable 
*/
pub fn getEnclosingCallable(self: TryStatement) -> Callable;

TryStatement::getLocation

/**
* @brief gets the location for the element.
* @return Location
*/
pub fn getLocation(self: TryStatement) -> Location;

TryStatement::getPrintableText

/**
* @brief gets a printed representation of this element, including its structure where applicable.
* @return string.
*/
pub fn getPrintableText(self: TryStatement) -> string;

TryStatement::__all__

Data constraint method.

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

TryStatement::getTryBlock

/**
* @brief gets the try block of the try statement.
* @return Statement 
*/
pub fn getTryBlock(self: TryStatement) -> CodeBlock;

TryStatement::getParent

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

TryStatement::getLocationHashId

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

TryStatement::getFinallyBlock

/**
* @brief gets the finally block of the try statement
* @return CodeBlock 
*/
pub fn getFinallyBlock(self: TryStatement) -> CodeBlock;

TryStatement::getResourceList

/**
* @brief gets the ResourceList of the try statement
* @return ResourceList 
*/
pub fn getResourceList(self: TryStatement) -> ResourceList;

TryStatement::getIthCatchBlock

/**
* @brief gets the i-th catch clause of the try statement.
* @return CatchClauseStatement 
*/
pub fn getIthCatchBlock(self: TryStatement, index: int) -> CatchClause;

TryStatement::getIndex

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

TryStatement::getSize

/**
* @brief gets the size information for the element.
* @return NumberOfLines
*/
pub fn getSize(self: TryStatement) -> NumberOfLines;