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