public class TernaryExpression extends OperatorExpression
Modifier and Type | Field and Description |
---|---|
protected Expression |
thirdOperand |
firstOperand, operator, secondOperand
resolvedType
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, setSecondOperand
getResolvedType, hasResolvedType
equals, getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toString
protected Expression thirdOperand
public TernaryExpression()
public TernaryExpression(Expression condition, Expression rIfTrue, Expression rIfFalse)
public void build(AST cst, IModule module)
build
in interface ModuleElement
build
in class OperatorExpression
public void compile(IEolCompilationContext context)
compile
in interface ICompilableModuleElement
compile
in class OperatorExpression
public Object execute(IEolContext context) throws EolRuntimeException
EolRuntimeException
Copyright © 2020. All rights reserved.