Package org.eclipse.epsilon.eol.dom
Class WhileStatement
- 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.WhileStatement
-
- All Implemented Interfaces:
ModuleElement
,ICompilableModuleElement
,IExecutableModuleElement
public class WhileStatement extends Statement
-
-
Field Summary
Fields Modifier and Type Field Description protected StatementBlock
bodyStatementBlock
protected Expression
conditionExpression
-
Constructor Summary
Constructors Constructor Description WhileStatement()
WhileStatement(Expression conditionExpression, StatementBlock bodyStatementBlock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(AST cst, IModule module)
void
compile(IEolCompilationContext context)
java.lang.Object
execute(IEolContext context)
StatementBlock
getBodyStatementBlock()
Expression
getConditionExpression()
void
setBodyStatementBlock(StatementBlock bodyStatementBlock)
void
setConditionExpression(Expression conditionExpression)
-
Methods inherited from class org.eclipse.epsilon.eol.dom.Statement
toStatementBlock
-
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, 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, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
-
-
-
Field Detail
-
conditionExpression
protected Expression conditionExpression
-
bodyStatementBlock
protected StatementBlock bodyStatementBlock
-
-
Constructor Detail
-
WhileStatement
public WhileStatement()
-
WhileStatement
public WhileStatement(Expression conditionExpression, StatementBlock bodyStatementBlock)
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
execute
public java.lang.Object execute(IEolContext context) throws EolRuntimeException
- Throws:
EolRuntimeException
-
compile
public void compile(IEolCompilationContext context)
-
getConditionExpression
public Expression getConditionExpression()
-
setConditionExpression
public void setConditionExpression(Expression conditionExpression)
-
getBodyStatementBlock
public StatementBlock getBodyStatementBlock()
-
setBodyStatementBlock
public void setBodyStatementBlock(StatementBlock bodyStatementBlock)
-
-