Comprehension
/** * @brief One for clause in a comprehension. */
Inherit from ComprehensionDO
Primary key: element_oid: int
schema Comprehension extends ComprehensionDO { @primary element_oid: int, target_expr_oid: int, iter_expr_oid: int, element_index: int, parent_oid: int, printable_text: string }
Comprehension::getParentOid
/** * @brief gets the parent oid of this element. * @return int */
- Parameter
self
:Comprehension
- Return
int
pub fn getParentOid(self: Comprehension) -> int;
Comprehension::getElementIndex
/** * @brief gets the element index of this element. * @return int */
- Parameter
self
:Comprehension
- Return
int
pub fn getElementIndex(self: Comprehension) -> int;
Comprehension::getIterExprOid
/** * @brief gets the iter expr oid of this element. * @return int */
- Parameter
self
:Comprehension
- Return
int
pub fn getIterExprOid(self: Comprehension) -> int;
Comprehension::getParent
/** * @brief gets the parent element of the element * @return CombineElement */
- Parameter
self
:Comprehension
- Return
CombineElement
pub fn getParent(self: Comprehension) -> CombineElement;
Comprehension::getTargetExprOid
/** * @brief gets the target expr oid of this element. * @return int */
- Parameter
self
:Comprehension
- Return
int
pub fn getTargetExprOid(self: Comprehension) -> int;
Comprehension::__all__
Data constraint method.
- Parameter
db
:PythonDB
- Return
*Comprehension
pub fn __all__(db: PythonDB) -> *Comprehension;
Comprehension::getAnAncestor
/** * @brief gets an ancestor of the element. * @return CombineElement */
- Parameter
self
:Comprehension
- Return
*CombineElement
pub fn getAnAncestor(self: Comprehension) -> *CombineElement;
Comprehension::getLocation
/** * @brief gets the location for the element's parent since this type has no location info. * @return Location */
- Parameter
self
:Comprehension
- Return
Location
pub fn getLocation(self: Comprehension) -> Location;
Comprehension::getPrintableText
/** * @brief gets the printable text of this element. * @return string */
- Parameter
self
:Comprehension
- Return
string
pub fn getPrintableText(self: Comprehension) -> string;