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
*/
- Parameter
self
:ConditionalExpression
- Return
int
pub fn getParentHashId(self: ConditionalExpression) -> int;
ConditionalExpression::getEnclosingStatement
/**
* @brief gets the statement which encloses the expression.
* @return Statement
*/
- Parameter
self
:ConditionalExpression
- Return
Statement
pub fn getEnclosingStatement(self: ConditionalExpression) -> Statement;
ConditionalExpression::getIndex
/**
* @brief gets the index order of this element.
* @return int
*/
- Parameter
self
:ConditionalExpression
- Return
int
pub fn getIndex(self: ConditionalExpression) -> int;
ConditionalExpression::getType
/**
* @brief gets the type of this element.
* @return string
*/
- Parameter
self
:ConditionalExpression
- 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
*/
- Parameter
self
:ConditionalExpression
- 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
*/
- Parameter
self
:ConditionalExpression
- Return
Expression
pub fn getFalseExpression(self: ConditionalExpression) -> Expression;
ConditionalExpression::getSize
/**
* @brief gets the size information for the element.
* @return NumberOfLines
*/
- Parameter
self
:ConditionalExpression
- Return
NumberOfLines
pub fn getSize(self: ConditionalExpression) -> NumberOfLines;
ConditionalExpression::getCondition
/**
* @brief gets the condition of the conditional expression.
* @return Expression
*/
- Parameter
self
:ConditionalExpression
- Return
Expression
pub fn getCondition(self: ConditionalExpression) -> Expression;
ConditionalExpression::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return ElementParent
*/
- Parameter
self
:ConditionalExpression
- Return
*ElementParent
pub fn getAnAncestor(self: ConditionalExpression) -> *ElementParent;
ConditionalExpression::getParent
/**
* @brief gets the parent of the expression.
* @return ElementParent
*/
- Parameter
self
:ConditionalExpression
- Return
ElementParent
pub fn getParent(self: ConditionalExpression) -> ElementParent;
ConditionalExpression::getLocationHashId
/**
* @brief gets the location hash id of this element.
* @return int
*/
- Parameter
self
:ConditionalExpression
- 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.
*/
- Parameter
self
:ConditionalExpression
- Return
string
pub fn getPrintableText(self: ConditionalExpression) -> string;
ConditionalExpression::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
- Parameter
self
:ConditionalExpression
- Return
Location
pub fn getLocation(self: ConditionalExpression) -> Location;
ConditionalExpression::__all__
Data constraint method.
- Parameter
db
:JavaDB
- Return
*ConditionalExpression
pub fn __all__(db: JavaDB) -> *ConditionalExpression;
ConditionalExpression::getEnclosingCallable
/**
* @brief gets the callable in which this expression occurs.
* @return Callable
*/
- Parameter
self
:ConditionalExpression
- Return
Callable
pub fn getEnclosingCallable(self: ConditionalExpression) -> Callable;