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
*/
- Parameter
self
:SwitchCase
- Return
ElementParent
pub fn getParent(self: SwitchCase) -> ElementParent;
SwitchCase::isDefault
/**
* @brief the element represents a default section or not, 1 means true.
* @return int
*/
- Parameter
self
:SwitchCase
- Return
int
pub fn isDefault(self: SwitchCase) -> int;
SwitchCase::getParentOid
/**
* @brief gets the parent oid of this element.
* @return int
*/
- Parameter
self
:SwitchCase
- Return
int
pub fn getParentOid(self: SwitchCase) -> int;
SwitchCase::getLocationOid
/**
* @brief gets the location oid of this element.
* @return int
*/
- Parameter
self
:SwitchCase
- Return
int
pub fn getLocationOid(self: SwitchCase) -> int;
SwitchCase::getSubStatement
/**
* @brief gets the sub statement of this element.
* @return Statement
*/
- Parameter
self
:SwitchCase
- 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
*/
- Parameter
self
:SwitchCase
- Return
SwitchCase
pub fn getNextSwitchCase(self: SwitchCase) -> SwitchCase;
SwitchCase::getIndexOrder
/**
* @brief gets the index order of this element.
* @return int
*/
- Parameter
self
:SwitchCase
- Return
int
pub fn getIndexOrder(self: SwitchCase) -> int;
SwitchCase::getEnclosingCallable
/**
* @brief gets the immediately enclosing callable whose body contains this statement.
* @return Callable
*/
- Parameter
self
:SwitchCase
- Return
*Callable
pub fn getEnclosingCallable(self: SwitchCase) -> *Callable;
SwitchCase::__all__
Data constraint method.
- Parameter
db
:CfamilyDB
- Return
*SwitchCase
pub fn __all__(db: CfamilyDB) -> *SwitchCase;
SwitchCase::getPrintableText
/**
* @brief gets a printed representation of this element, including its structure where applicable.
* @return string.
*/
- Parameter
self
:SwitchCase
- Return
string
pub fn getPrintableText(self: SwitchCase) -> string;
SwitchCase::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
- Parameter
self
:SwitchCase
- Return
Location
pub fn getLocation(self: SwitchCase) -> Location;
SwitchCase::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return ElementParent
*/
- Parameter
self
:SwitchCase
- Return
*ElementParent
pub fn getAnAncestor(self: SwitchCase) -> *ElementParent;
SwitchCase::getKindName
/**
* @brief Statement kind name
* @return string
*/
- Parameter
self
:SwitchCase
- Return
string
pub fn getKindName(self: SwitchCase) -> string;