SwitchStatement

/**
* @brief A switch statement.
*/

Inherit from Statement

Primary key: element_hash_id: int

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

SwitchStatement::getEnclosingStatement

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

SwitchStatement::getParentHashId

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

SwitchStatement::getAChild

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

SwitchStatement::getAnAncestor

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

SwitchStatement::getDefaultStmt

/**
* @brief gets the i-th child statement of this switch statement.
* @return Statement 
*/
pub fn getDefaultStmt(self: SwitchStatement) -> DefaultSwitchLabelStatement;

SwitchStatement::getCodeBlock

/**
* @brief gets switch Block
* @return codeBlock
*/
pub fn getCodeBlock(self: SwitchStatement) -> CodeBlock;

SwitchStatement::getIthStmt

/**
* @brief gets the i-th child statement of this switch statement.
* @return Statement 
*/
pub fn getIthStmt(self: SwitchStatement, idx: int) -> Statement;

SwitchStatement::getExpr

/**
* @brief gets the expression of this switch statement.
* @return Expression 
*/
pub fn getExpr(self: SwitchStatement) -> Expression;

SwitchStatement::getEnclosingCallable

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

SwitchStatement::getLocation

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

SwitchStatement::getPrintableText

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

SwitchStatement::__all__

Data constraint method.

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

SwitchStatement::getAEnclosingStatement

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

SwitchStatement::getType

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

SwitchStatement::getACase

/**
* @brief gets a case of this switch statement, which maybe either a normal or a default.
* @return SwitchLabelStatement 
*/
pub fn getACase(self: SwitchStatement) -> *SwitchLabelStatement;

SwitchStatement::getAStmt

/**
* @brief gets an immediate child statement of this switch statement.
* @return Statement 
*/
pub fn getAStmt(self: SwitchStatement) -> Statement;

SwitchStatement::getIndex

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

SwitchStatement::getParent

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

SwitchStatement::getLocationHashId

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

SwitchStatement::getSize

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