ImportStatement

/**
* @brief An import statement.
*/

Inherit from Statement

Primary key: element_oid: int

schema ImportStatement extends Statement {
  @primary element_oid: int,
  type: string,
  element_index: int,
  parent_oid: int,
  location_oid: int,
  printable_text: string
}

ImportStatement::getLocationOid

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

ImportStatement::getParent

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

ImportStatement::getElementIndex

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

ImportStatement::getParentOid

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

ImportStatement::getEnclosingStatement

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

ImportStatement::getPrintableText

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

ImportStatement::getLocation

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

ImportStatement::__all__

Data constraint method.

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

ImportStatement::getType

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

ImportStatement::getName

/**
* @brief gets the name element of the element.
* @return CombineElement 
*/
pub fn getName(self: ImportStatement) -> CombineElement;

ImportStatement::getAnAncestor

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

ImportStatement::getEnclosingScope

/**
* @brief gets the immediately enclosing scope (module, function or class) whose body contains this statement.
* @return Scope 
*/
pub fn getEnclosingScope(self: ImportStatement) -> Scope;

ImportStatement::getSize

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

ImportStatement::getAChild

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