ConditionalOperatorExpression
/**
*
* @brief DO class: This models both ConditionalOperator and BinaryConditionalOperator in Clang AST \n
BinaryConditionalOperator: The middle operand in a conditional expression may be omitted \n
e.g.: x ? : y see https://gcc.gnu.org/onlinedocs/gcc/Conditionals.html
*/
Inherit from Expression
Primary key: oid: int
schema ConditionalOperatorExpression extends Expression {
@primary oid: int,
parent_oid: int,
index_order: int,
location_oid: int,
kind_name: string,
printable_text: string
}
ConditionalOperatorExpression::getKindName
/**
* @brief Statement kind name
* @return string
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
string
pub fn getKindName(self: ConditionalOperatorExpression) -> string;
ConditionalOperatorExpression::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return ElementParent
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
*ElementParent
pub fn getAnAncestor(self: ConditionalOperatorExpression) -> *ElementParent;
ConditionalOperatorExpression::getFalseExpression
/**
* @brief Return the subexpression which will be evaluated if the condition evaluates to false
* @return Expression
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
Expression
pub fn getFalseExpression(self: ConditionalOperatorExpression) -> Expression;
ConditionalOperatorExpression::getParent
/**
* @brief gets the parent element of the statement
* @return ElementParent
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
ElementParent
pub fn getParent(self: ConditionalOperatorExpression) -> ElementParent;
ConditionalOperatorExpression::getConditionExpression
/**
* @brief gets the condition expression oid of this element.
* @return Expression
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
Expression
pub fn getConditionExpression(self: ConditionalOperatorExpression) -> Expression;
ConditionalOperatorExpression::getTrueExpression
/**
* @brief Return the subexpression which will be evaluated if the condition evaluates to true
* @return Expression
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
Expression
pub fn getTrueExpression(self: ConditionalOperatorExpression) -> Expression;
ConditionalOperatorExpression::getParentOid
/**
* @brief gets the parent oid of this element.
* @return int
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
int
pub fn getParentOid(self: ConditionalOperatorExpression) -> int;
ConditionalOperatorExpression::getIndexOrder
/**
* @brief gets the index order of this element.
* @return int
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
int
pub fn getIndexOrder(self: ConditionalOperatorExpression) -> int;
ConditionalOperatorExpression::getLocationOid
/**
* @brief gets the location oid of this element.
* @return int
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
int
pub fn getLocationOid(self: ConditionalOperatorExpression) -> int;
ConditionalOperatorExpression::isMiddleOperandOmitted
/**
* @brief gets the is middle operand omitted of this element.
* @return int
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
int
pub fn isMiddleOperandOmitted(self: ConditionalOperatorExpression) -> int;
ConditionalOperatorExpression::__all__
Data constraint method.
- Parameter
db
:CfamilyDB
- Return
*ConditionalOperatorExpression
pub fn __all__(db: CfamilyDB) -> *ConditionalOperatorExpression;
ConditionalOperatorExpression::getPrintableText
/**
* @brief gets a printed representation of this element, including its structure where applicable.
* @return string.
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
string
pub fn getPrintableText(self: ConditionalOperatorExpression) -> string;
ConditionalOperatorExpression::getEnclosingCallable
/**
* @brief gets the immediately enclosing callable whose body contains this statement.
* @return Callable
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
*Callable
pub fn getEnclosingCallable(self: ConditionalOperatorExpression) -> *Callable;
ConditionalOperatorExpression::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
- Parameter
self
:ConditionalOperatorExpression
- Return
Location
pub fn getLocation(self: ConditionalOperatorExpression) -> Location;