SwitchStatement

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

Inherit from Statement

Primary key: oid: int

schema SwitchStatement extends Statement { @primary oid: int, parent_oid: int, index_order: int, location_oid: int, kind_name: string, printable_text: string } 

SwitchStatement::getLocationOid

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

SwitchStatement::getStartingSwitchCase

/** * @brief Gets the starting switch case statement of this switch statement * @return SwitchCase */ 
pub fn getStartingSwitchCase(self: SwitchStatement) -> SwitchCase; 

SwitchStatement::getIndexOrder

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

SwitchStatement::getParent

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

SwitchStatement::getConditionExpression

/** * @brief Gets the condition of this switch statement, the condition is an expression * @return Expression */ 
pub fn getConditionExpression(self: SwitchStatement) -> Expression; 

SwitchStatement::getASwitchCase

/** * @brief Gets a ‘switch case’ statement of this ‘switch’ statement. * @return Statement */ 
pub fn getASwitchCase(self: SwitchStatement) -> SwitchCase; 

SwitchStatement::getParentOid

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

SwitchStatement::getEnclosingCallable

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

SwitchStatement::__all__

Data constraint method.

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

SwitchStatement::getPrintableText

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

SwitchStatement::getLocation

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

SwitchStatement::getAnAncestor

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

SwitchStatement::getKindName

/** * @brief Statement kind name * @return string */ 
pub fn getKindName(self: SwitchStatement) -> string;