public class TernaryExpression extends OperatorExpression
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
thirdOperand |
firstOperand, operator, secondOperandresolvedType| Constructor and Description |
|---|
TernaryExpression() |
TernaryExpression(Expression condition,
Expression rIfTrue,
Expression rIfFalse) |
| Modifier and Type | Method and Description |
|---|---|
void |
build(AST cst,
IModule module) |
void |
compile(IEolCompilationContext context) |
Object |
execute(IEolContext context) |
getFirstOperand, getOperands, getOperator, getSecondOperand, setFirstOperand, setOperator, setSecondOperandgetResolvedType, hasResolvedTypeequals, getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toStringprotected Expression thirdOperand
public TernaryExpression()
public TernaryExpression(Expression condition, Expression rIfTrue, Expression rIfFalse)
public void build(AST cst, IModule module)
build in interface ModuleElementbuild in class OperatorExpressionpublic void compile(IEolCompilationContext context)
compile in interface ICompilableModuleElementcompile in class OperatorExpressionpublic Object execute(IEolContext context) throws EolRuntimeException
EolRuntimeExceptionCopyright © 2020. All rights reserved.