public class WhileStatement extends Statement
Modifier and Type | Field and Description |
---|---|
protected StatementBlock |
bodyStatementBlock |
protected Expression |
conditionExpression |
Constructor and Description |
---|
WhileStatement() |
WhileStatement(Expression conditionExpression,
StatementBlock bodyStatementBlock) |
Modifier and Type | Method and Description |
---|---|
void |
build(AST cst,
IModule module) |
void |
compile(EolCompilationContext context) |
Object |
execute(IEolContext context) |
StatementBlock |
getBodyStatementBlock() |
Expression |
getConditionExpression() |
void |
setBodyStatementBlock(StatementBlock bodyStatementBlock) |
void |
setConditionExpression(Expression conditionExpression) |
toStatementBlock
getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
protected Expression conditionExpression
protected StatementBlock bodyStatementBlock
public WhileStatement()
public WhileStatement(Expression conditionExpression, StatementBlock bodyStatementBlock)
public void build(AST cst, IModule module)
build
in interface ModuleElement
build
in class AbstractModuleElement
public Object execute(IEolContext context) throws EolRuntimeException
EolRuntimeException
public void compile(EolCompilationContext context)
public Expression getConditionExpression()
public void setConditionExpression(Expression conditionExpression)
public StatementBlock getBodyStatementBlock()
public void setBodyStatementBlock(StatementBlock bodyStatementBlock)
Copyright © 2016. All rights reserved.