ForStatement

/**
* @brief A basic for statement.
*/

Inherit from Statement

Primary key: element_hash_id: int

schema ForStatement extends Statement {
  @primary element_hash_id: int,
  parent_hash_id: int,
  index_order: int,
  location_hash_id: int,
  printable_text: string,
  type: string
}

ForStatement::getAEnclosingStatement

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

ForStatement::getType

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

ForStatement::getEnclosingStatement

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

ForStatement::getParentHashId

/**
* @brief gets the parent hash id of this element.
* @return int
*/
pub fn getParentHashId(self: ForStatement) -> int;

ForStatement::getEnclosingCallable

/**
* @brief gets the immediately enclosing callable (method or constructor) whose body contains this statement.
* @return Callable 
*/
pub fn getEnclosingCallable(self: ForStatement) -> Callable;

ForStatement::getLocation

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

ForStatement::getPrintableText

/**
* @brief gets a printed representation of this element, including its structure where applicable.
* @return string.
*/
pub fn getPrintableText(self: ForStatement) -> string;

ForStatement::__all__

Data constraint method.

pub fn __all__(db: JavaDB) -> *ForStatement;

ForStatement::getBody

/**
* @brief gets the body of this for loop, usually a block statement.
* @return Statement 
*/
pub fn getBody(self: ForStatement) -> Statement;

ForStatement::getCondition

/**
* @brief gets the boolean condition of this for loop.
* @return Expression 
*/
pub fn getCondition(self: ForStatement) -> Expression;

ForStatement::getUpdate

/**
* @brief gets the update statement of this for loop.
* @return Statement 
*/
pub fn getUpdate(self: ForStatement) -> Statement;

ForStatement::getParent

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

ForStatement::getLocationHashId

/**
* @brief gets the location hash id of this element.
* @return int
*/
pub fn getLocationHashId(self: ForStatement) -> int;

ForStatement::getInitialization

/**
* @brief gets the initializer statement of the for loop, this maybe an assignment statement or a local variable declaration statement.
* @return Statement 
*/
pub fn getInitialization(self: ForStatement) -> Statement;

ForStatement::getAChild

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

ForStatement::getTrueSuccessor

/**
* @brief gets the statement that is executed whenever the condition of this branch statement evaluates to true.
* @return Statement 
*/
pub fn getTrueSuccessor(self: ForStatement) -> Statement;

ForStatement::getIndex

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

ForStatement::getSize

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

ForStatement::getAnAncestor

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