ConditionalExpression

/**
* @classname ConditionalExpression
* @brief A conditional expression of the form a ? b : c, where a is the condition, b is the expression that is evaluated if the condition evaluates to true, and c is the expression that is evaluated if the condition evaluates to false.
*/

Inherit from Expression

Primary key: element_hash_id: int

schema ConditionalExpression extends Expression {
  @primary element_hash_id: int,
  name: string,
  parent_hash_id: int,
  index_order: int,
  location_hash_id: int,
  printable_text: string
}

ConditionalExpression::getParentHashId

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

ConditionalExpression::getEnclosingStatement

/**
* @brief gets the statement which encloses the expression.
* @return Statement 
*/
pub fn getEnclosingStatement(self: ConditionalExpression) -> Statement;

ConditionalExpression::getIndex

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

ConditionalExpression::getType

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

ConditionalExpression::getTrueExpression

/**
* @brief gets the true expression of the conditional expression if the condition is true.
* @return Expression 
*/
pub fn getTrueExpression(self: ConditionalExpression) -> Expression;

ConditionalExpression::getFalseExpression

/**
* @brief gets the false expression of the conditional expression if the condition is false.
* @return Expression 
*/
pub fn getFalseExpression(self: ConditionalExpression) -> Expression;

ConditionalExpression::getSize

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

ConditionalExpression::getCondition

/**
* @brief gets the condition of the conditional expression.
* @return Expression 
*/
pub fn getCondition(self: ConditionalExpression) -> Expression;

ConditionalExpression::getAnAncestor

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

ConditionalExpression::getParent

/**
* @brief gets the parent of the expression.
* @return ElementParent 
*/
pub fn getParent(self: ConditionalExpression) -> ElementParent;

ConditionalExpression::getLocationHashId

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

ConditionalExpression::getPrintableText

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

ConditionalExpression::getLocation

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

ConditionalExpression::__all__

Data constraint method.

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

ConditionalExpression::getEnclosingCallable

/**
* @brief gets the callable in which this expression occurs.
* @return Callable 
*/
pub fn getEnclosingCallable(self: ConditionalExpression) -> Callable;