Module

/**
* @brief A Module refer to a file containing Python statements and definitions.
*/

Inherit from ModuleDO

Primary key: element_oid: int

schema Module extends ModuleDO {
  @primary element_oid: int,
  name: string,
  file_oid: int,
  location_oid: int
}

Module::getName

/**
* @brief gets the name of this element.
* @return string
*/
  • Parameter self: Module
  • Return string
pub fn getName(self: Module) -> string;

Module::getParent

/**
* @brief gets the file which contains the module.
* @return File 
*/
pub fn getParent(self: Module) -> File;

Module::getLocationOid

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

Module::getFileOid

/**
* @brief gets the file oid of this element.
* @return int
*/
  • Parameter self: Module
  • Return int
pub fn getFileOid(self: Module) -> int;

Module::__all__

Data constraint method.

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

Module::getNumberOfLines

/**
* @brief gets the size information for the element.
* @return NumberOfLines
*/
pub fn getNumberOfLines(self: Module) -> NumberOfLines;

Module::getLocation

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