- All Superinterfaces:
Expression,Sourceable
The ternary conditional expression ("?" in C).
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.civl.mc.model.IF.expression.Expression
Expression.ExpressionKind -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from interface dev.civl.mc.model.IF.expression.Expression
calculateConstantValue, calculateDerefs, constantValue, containsHere, expressionKind, expressionScope, freeVariables, getExpressionType, hasConstantValue, hasDerefs, isErrorFree, isPurelyLocal, lowestScope, purelyLocalAnalysis, purelyLocalAnalysisOfVariables, replaceWith, replaceWith, setErrorFree, variableAddressedOf, variableAddressedOfMethods inherited from interface dev.civl.mc.model.IF.Sourceable
getSource, setCIVLSource
-
Method Details
-
getCondition
Expression getCondition()- Returns:
- The condition being evaluated in this ternary expression.
-
getTrueBranch
Expression getTrueBranch()- Returns:
- The expression returned if the condition evaluates to true.
-
getFalseBranch
Expression getFalseBranch()- Returns:
- The expression returned if the condition evaluates to false.
-