SwitchLabelStatement

/**
* @brief A single switch label or labeled rule in a switch statement.
*/

Inherit from Statement

Primary key: element_hash_id: int

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

SwitchLabelStatement::getAEnclosingStatement

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

SwitchLabelStatement::getType

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

SwitchLabelStatement::getEnclosingStatement

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

SwitchLabelStatement::getParentHashId

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

SwitchLabelStatement::getAChild

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

SwitchLabelStatement::getSize

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

SwitchLabelStatement::getLocationHashId

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

SwitchLabelStatement::getSelector

/**
* @brief gets the expression of the surrounding switch that this case is compared against.
* @return ExpressionListElement 
*/
pub fn getSelector(self: SwitchLabelStatement) -> ExpressionListElement;

SwitchLabelStatement::getDefault

/**
* @brief get the default label statement.
* @return SwitchLabelStatement
*/
pub fn getDefault(self: SwitchLabelStatement) -> SwitchLabelStatement;

SwitchLabelStatement::getEnclosingCallable

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

SwitchLabelStatement::getLocation

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

SwitchLabelStatement::getPrintableText

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

SwitchLabelStatement::__all__

Data constraint method.

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

SwitchLabelStatement::getIndex

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

SwitchLabelStatement::isDefaultValue

/**
* @brief the element represents a default section or not, 1 means true.
* @return int 
*/
pub fn isDefaultValue(self: SwitchLabelStatement) -> int;

SwitchLabelStatement::getEnclosingSwitchBlock

/**
* @brief gets the enclosing switch statement of this case.
* @return SwitchStatement 
*/
pub fn getEnclosingSwitchBlock(self: SwitchLabelStatement) -> SwitchStatement;

SwitchLabelStatement::getNextSwitchCaseStatement

pub fn getNextSwitchCaseStatement(self: SwitchLabelStatement) -> SwitchLabelStatement;

SwitchLabelStatement::getParent

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

SwitchLabelStatement::getNext

/**
* @brief the element represents a default section or not, 1 means true.
* @return int 
*/
pub fn getNext(self: SwitchLabelStatement) -> int;

SwitchLabelStatement::getExecutionStatement

pub fn getExecutionStatement(self: SwitchLabelStatement) -> *Statement;

SwitchLabelStatement::getAnAncestor

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

SwitchLabelStatement::getStatement

pub fn getStatement(self: SwitchLabelStatement, index: int) -> Statement;