ConstSwitchLabelStatement

Inherit from SwitchLabelStatement

Primary key: element_hash_id: int

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

ConstSwitchLabelStatement::getStatement

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

ConstSwitchLabelStatement::getAnAncestor

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

ConstSwitchLabelStatement::getExecutionStatement

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

ConstSwitchLabelStatement::getNext

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

ConstSwitchLabelStatement::getParent

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

ConstSwitchLabelStatement::getNextSwitchCaseStatement

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

ConstSwitchLabelStatement::getEnclosingSwitchBlock

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

ConstSwitchLabelStatement::isDefaultValue

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

ConstSwitchLabelStatement::getIndex

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

ConstSwitchLabelStatement::getParentHashId

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

ConstSwitchLabelStatement::getEnclosingStatement

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

ConstSwitchLabelStatement::getType

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

ConstSwitchLabelStatement::getAEnclosingStatement

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

ConstSwitchLabelStatement::getDefault

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

ConstSwitchLabelStatement::getAChild

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

ConstSwitchLabelStatement::getSize

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

ConstSwitchLabelStatement::getSelector

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

ConstSwitchLabelStatement::getLocationHashId

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

ConstSwitchLabelStatement::getPrintableText

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

ConstSwitchLabelStatement::getLocation

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

ConstSwitchLabelStatement::__all__

Data constraint method.

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

ConstSwitchLabelStatement::getEnclosingCallable

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