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