Package org.eclipse.epsilon.eol.dom
Class TernaryExpression
- All Implemented Interfaces:
ModuleElement
,IExecutableModuleElement
Ternary operator, similar to Java's.
- Since:
- 1.6
- Author:
- Sina Madani
-
Field Summary
FieldsFields inherited from class org.eclipse.epsilon.eol.dom.OperatorExpression
firstOperand, operator, secondOperand
-
Constructor Summary
ConstructorsConstructorDescriptionTernaryExpression
(Expression condition, Expression rIfTrue, Expression rIfFalse) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(IEolVisitor visitor) void
execute
(IEolContext context) void
setThirdOperand
(Expression thirdOperand) Methods inherited from class org.eclipse.epsilon.eol.dom.OperatorExpression
getFirstOperand, getOperands, getOperator, getSecondOperand, setFirstOperand, setOperator, setSecondOperand
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
Field Details
-
thirdOperand
-
-
Constructor Details
-
TernaryExpression
public TernaryExpression() -
TernaryExpression
-
-
Method Details
-
build
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classOperatorExpression
-
execute
- Throws:
EolRuntimeException
-
getThirdOperand
-
setThirdOperand
-
accept
- Specified by:
accept
in classExpression
-