ForeachStatement

/**
* @brief A foreach statement.
*/

Inherit from Statement

Primary key: element_hash_id: int

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

ForeachStatement::getAEnclosingStatement

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

ForeachStatement::getType

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

ForeachStatement::getEnclosingStatement

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

ForeachStatement::getParentHashId

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

ForeachStatement::getAChild

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

ForeachStatement::getIndex

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

ForeachStatement::getBody

/**
* @brief gets the body of this for loop.
* @return Statement 
*/
pub fn getBody(self: ForeachStatement) -> Statement;

ForeachStatement::getIterationParameter

/**
* @brief gets the iteration parameter of this foreach loop.
* @return Parameter 
*/
pub fn getIterationParameter(self: ForeachStatement) -> Parameter;

ForeachStatement::getParent

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

ForeachStatement::getLocationHashId

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

ForeachStatement::getSize

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

ForeachStatement::getAnAncestor

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

ForeachStatement::getEnclosingCallable

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

ForeachStatement::getIteratedValue

/**
* @brief gets the expression over which the foreach loop iterates.
* @return Expression 
*/
pub fn getIteratedValue(self: ForeachStatement) -> Expression;

ForeachStatement::__all__

Data constraint method.

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

ForeachStatement::getLocation

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

ForeachStatement::getPrintableText

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