WithItem
/** * @brief A single context manager in a with block. */
Inherit from WithItemDO
Primary key: element_oid: int
schema WithItem extends WithItemDO { @primary element_oid: int, printable_text: string, element_index: int, parent_oid: int }
WithItem::getPrintableText
/** * @brief gets the printable text of this element. * @return string */
- Parameter
self
:WithItem
- Return
string
pub fn getPrintableText(self: WithItem) -> string;
WithItem::getParent
/** * @brief gets the parent element of the element * @return CombineElement */
- Parameter
self
:WithItem
- Return
CombineElement
pub fn getParent(self: WithItem) -> CombineElement;
WithItem::__all__
Data constraint method.
pub fn __all__(db: PythonDB) -> *WithItem;
WithItem::getAnAncestor
/** * @brief gets an ancestor of the element. * @return CombineElement */
- Parameter
self
:WithItem
- Return
*CombineElement
pub fn getAnAncestor(self: WithItem) -> *CombineElement;
WithItem::getLocation
/** * @brief gets the location for the element's parent since this type has no location info. * @return Location */
pub fn getLocation(self: WithItem) -> Location;
WithItem::getParentOid
/** * @brief gets the parent oid of this element. * @return int */
- Parameter
self
:WithItem
- Return
int
pub fn getParentOid(self: WithItem) -> int;
WithItem::getElementIndex
/** * @brief gets the element index of this element. * @return int */
- Parameter
self
:WithItem
- Return
int
pub fn getElementIndex(self: WithItem) -> int;