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
*/
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 
*/
pub fn getEnclosingScope(self: InitFunction) -> Scope;

InitFunction::getParent

/**
* @brief gets the parent element of the statement
* @return CombineElement 
*/
pub fn getParent(self: InitFunction) -> CombineElement;

InitFunction::getElementIndex

/**
* @brief gets the element index of this element.
* @return int
*/
pub fn getElementIndex(self: InitFunction) -> int;

InitFunction::getParentOid

/**
* @brief gets the parent oid of this element.
* @return int
*/
pub fn getParentOid(self: InitFunction) -> int;

InitFunction::getName

/**
* @brief gets the name of the function.
* @return string 
*/
pub fn getName(self: InitFunction) -> string;

InitFunction::getQualifiedName

/**
* @brief gets the qualified name of the function.
* @return string 
*/
pub fn getQualifiedName(self: InitFunction) -> string;

InitFunction::getAnAncestor

/**
* @brief gets an ancestor of the element.
* @return CombineElement 
*/
pub fn getAnAncestor(self: InitFunction) -> *CombineElement;

InitFunction::getArgumentByIndex

/**
* @brief gets the arg by index of the function.
* @return Arg 
*/
pub fn getArgumentByIndex(self: InitFunction, i: int) -> Arg;

InitFunction::getEnclosingStatement

/**
* @brief gets the statement containing this statement.
* @return Statement 
*/
pub fn getEnclosingStatement(self: InitFunction) -> Statement;

InitFunction::getType

/**
* @brief gets the type of this element.
* @return string
*/
pub fn getType(self: InitFunction) -> string;

InitFunction::getLocationOid

/**
* @brief gets the location oid of this element.
* @return int
*/
pub fn getLocationOid(self: InitFunction) -> int;

InitFunction::getAChild

/**
* @brief gets a child of this statement.
* @return Statement 
*/
pub fn getAChild(self: InitFunction) -> *Statement;

InitFunction::getArguments

/**
* @brief gets the arguments of the function.
* @return Arguments 
*/
pub fn getArguments(self: InitFunction) -> Arguments;

InitFunction::getLocation

/**
* @brief gets the location for the element.
* @return Location
*/
pub fn getLocation(self: InitFunction) -> Location;

InitFunction::__all__

Data constraint method.

pub fn __all__(db: PythonDB) -> *InitFunction;

InitFunction::getPrintableText

/**
* @brief gets the printable text of this element.
* @return string
*/
pub fn getPrintableText(self: InitFunction) -> string;