MatchStatement
/**
* @brief A match statement.
*/
Inherit from Statement
Primary key: element_oid: int
schema MatchStatement extends Statement {
@primary element_oid: int,
type: string,
element_index: int,
parent_oid: int,
location_oid: int,
printable_text: string
}
MatchStatement::getLocationOid
/**
* @brief gets the location oid of this element.
* @return int
*/
- Parameter
self
:MatchStatement
- Return
int
pub fn getLocationOid(self: MatchStatement) -> int;
MatchStatement::getElementIndex
/**
* @brief gets the element index of this element.
* @return int
*/
- Parameter
self
:MatchStatement
- Return
int
pub fn getElementIndex(self: MatchStatement) -> int;
MatchStatement::getParentOid
/**
* @brief gets the parent oid of this element.
* @return int
*/
- Parameter
self
:MatchStatement
- Return
int
pub fn getParentOid(self: MatchStatement) -> int;
MatchStatement::getPrintableText
/**
* @brief gets the printable text of this element.
* @return string
*/
- Parameter
self
:MatchStatement
- Return
string
pub fn getPrintableText(self: MatchStatement) -> string;
MatchStatement::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
- Parameter
self
:MatchStatement
- Return
Location
pub fn getLocation(self: MatchStatement) -> Location;
MatchStatement::__all__
Data constraint method.
- Parameter
db
:PythonDB
- Return
*MatchStatement
pub fn __all__(db: PythonDB) -> *MatchStatement;
MatchStatement::getType
/**
* @brief gets the type of this element.
* @return string
*/
- Parameter
self
:MatchStatement
- Return
string
pub fn getType(self: MatchStatement) -> string;
MatchStatement::getParent
/**
* @brief gets the parent element of the statement
* @return CombineElement
*/
- Parameter
self
:MatchStatement
- Return
CombineElement
pub fn getParent(self: MatchStatement) -> CombineElement;
MatchStatement::getEnclosingStatement
/**
* @brief gets the statement containing this statement.
* @return Statement
*/
- Parameter
self
:MatchStatement
- Return
Statement
pub fn getEnclosingStatement(self: MatchStatement) -> Statement;
MatchStatement::getMatchCase
/**
* @brief gets a case pattern in the statement.
* @return MatchCase
*/
- Parameter
self
:MatchStatement
- Return
MatchCase
pub fn getMatchCase(self: MatchStatement) -> MatchCase;
MatchStatement::getAChild
/**
* @brief gets a child of this statement.
* @return Statement
*/
- Parameter
self
:MatchStatement
- Return
*Statement
pub fn getAChild(self: MatchStatement) -> *Statement;
MatchStatement::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return CombineElement
*/
- Parameter
self
:MatchStatement
- Return
*CombineElement
pub fn getAnAncestor(self: MatchStatement) -> *CombineElement;
MatchStatement::getEnclosingScope
/**
* @brief gets the immediately enclosing scope (module, function or class) whose body contains this statement.
* @return Scope
*/
- Parameter
self
:MatchStatement
- Return
Scope
pub fn getEnclosingScope(self: MatchStatement) -> Scope;
MatchStatement::getSize
/**
* @brief gets the size information for the element.
* @return NumberOfLines
*/
- Parameter
self
:MatchStatement
- Return
NumberOfLines
pub fn getSize(self: MatchStatement) -> NumberOfLines;