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(IEolCompilationContext context) |
Object |
execute(IEolContext context) |
StatementBlock |
getBodyStatementBlock() |
Expression |
getConditionExpression() |
void |
setBodyStatementBlock(StatementBlock bodyStatementBlock) |
void |
setConditionExpression(Expression conditionExpression) |
toStatementBlock
equals, getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toString
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(IEolCompilationContext context)
public Expression getConditionExpression()
public void setConditionExpression(Expression conditionExpression)
public StatementBlock getBodyStatementBlock()
public void setBodyStatementBlock(StatementBlock bodyStatementBlock)
Copyright © 2020. All rights reserved.