Package org.eclipse.epsilon.eol.dom
Class IfStatement
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.eol.dom.AbstractExecutableModuleElement
org.eclipse.epsilon.eol.dom.Statement
org.eclipse.epsilon.eol.dom.IfStatement
- All Implemented Interfaces:
ModuleElement,IExecutableModuleElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expressionprotected StatementBlockprotected StatementBlock -
Constructor Summary
ConstructorsConstructorDescriptionIfStatement(Expression conditionExpression, StatementBlock thenStatementBlock, StatementBlock elseStatementBlock) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IEolVisitor visitor) voidexecute(IEolContext context) voidsetConditionExpression(Expression conditionExpression) voidsetElseStatementBlock(StatementBlock elseStatementBlock) voidsetThenStatementBlock(StatementBlock thenStatementBlock) Methods inherited from class org.eclipse.epsilon.eol.dom.Statement
toStatementBlockMethods 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
-
conditionExpression
-
thenStatementBlock
-
elseStatementBlock
-
-
Constructor Details
-
IfStatement
public IfStatement() -
IfStatement
public IfStatement(Expression conditionExpression, StatementBlock thenStatementBlock, StatementBlock elseStatementBlock)
-
-
Method Details
-
build
- Specified by:
buildin interfaceModuleElement- Overrides:
buildin classAbstractModuleElement
-
execute
- Throws:
EolRuntimeException
-
getConditionExpression
-
setConditionExpression
-
getThenStatementBlock
-
setThenStatementBlock
-
getElseStatementBlock
-
setElseStatementBlock
-
accept
-