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