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 TypeMethodDescriptionvoidaccept(IEolVisitor visitor) voidexecute(IEolContext context) voidsetThirdOperand(Expression thirdOperand) Methods inherited from class org.eclipse.epsilon.eol.dom.OperatorExpression
getFirstOperand, getOperands, getOperator, getSecondOperand, setFirstOperand, setOperator, setSecondOperandMethods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
buildin interfaceModuleElement- Overrides:
buildin classOperatorExpression
-
execute
- Throws:
EolRuntimeException
-
getThirdOperand
-
setThirdOperand
-
accept
- Specified by:
acceptin classExpression
-