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