SwitchCase

/**
* 
* @brief A switch case.
*/

Inherit from Statement

Primary key: oid: int

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

SwitchCase::getParent

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

SwitchCase::isDefault

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

SwitchCase::getParentOid

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

SwitchCase::getLocationOid

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

SwitchCase::getSubStatement

/**
* @brief gets the sub statement of this element.
* @return Statement
*/
pub fn getSubStatement(self: SwitchCase) -> Statement;

SwitchCase::getNextSwitchCase

/**
* @brief Gets the next switch case belonging to the same switch statement, if any
* @return SwitchCaseDO
*/
pub fn getNextSwitchCase(self: SwitchCase) -> SwitchCase;

SwitchCase::getIndexOrder

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

SwitchCase::getEnclosingCallable

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

SwitchCase::__all__

Data constraint method.

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

SwitchCase::getPrintableText

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

SwitchCase::getLocation

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

SwitchCase::getAnAncestor

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

SwitchCase::getKindName

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