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
*/
- Parameter
self
:SwitchStatement
- Return
int
pub fn getLocationOid(self: SwitchStatement) -> int;
SwitchStatement::getStartingSwitchCase
/**
* @brief Gets the starting switch case statement of this switch statement
* @return SwitchCase
*/
- Parameter
self
:SwitchStatement
- Return
SwitchCase
pub fn getStartingSwitchCase(self: SwitchStatement) -> SwitchCase;
SwitchStatement::getIndexOrder
/**
* @brief gets the index order of this element.
* @return int
*/
- Parameter
self
:SwitchStatement
- Return
int
pub fn getIndexOrder(self: SwitchStatement) -> int;
SwitchStatement::getParent
/**
* @brief gets the parent element of the statement
* @return ElementParent
*/
- Parameter
self
:SwitchStatement
- 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
*/
- Parameter
self
:SwitchStatement
- Return
Expression
pub fn getConditionExpression(self: SwitchStatement) -> Expression;
SwitchStatement::getASwitchCase
/**
* @brief Gets a ‘switch case’ statement of this ‘switch’ statement.
* @return Statement
*/
- Parameter
self
:SwitchStatement
- Return
SwitchCase
pub fn getASwitchCase(self: SwitchStatement) -> SwitchCase;
SwitchStatement::getParentOid
/**
* @brief gets the parent oid of this element.
* @return int
*/
- Parameter
self
:SwitchStatement
- Return
int
pub fn getParentOid(self: SwitchStatement) -> int;
SwitchStatement::getEnclosingCallable
/**
* @brief gets the immediately enclosing callable whose body contains this statement.
* @return Callable
*/
- Parameter
self
:SwitchStatement
- Return
*Callable
pub fn getEnclosingCallable(self: SwitchStatement) -> *Callable;
SwitchStatement::__all__
Data constraint method.
- Parameter
db
:CfamilyDB
- Return
*SwitchStatement
pub fn __all__(db: CfamilyDB) -> *SwitchStatement;
SwitchStatement::getPrintableText
/**
* @brief gets a printed representation of this element, including its structure where applicable.
* @return string.
*/
- Parameter
self
:SwitchStatement
- Return
string
pub fn getPrintableText(self: SwitchStatement) -> string;
SwitchStatement::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
- Parameter
self
:SwitchStatement
- Return
Location
pub fn getLocation(self: SwitchStatement) -> Location;
SwitchStatement::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return ElementParent
*/
- Parameter
self
:SwitchStatement
- Return
*ElementParent
pub fn getAnAncestor(self: SwitchStatement) -> *ElementParent;
SwitchStatement::getKindName
/**
* @brief Statement kind name
* @return string
*/
- Parameter
self
:SwitchStatement
- Return
string
pub fn getKindName(self: SwitchStatement) -> string;