Class CommandFor
- java.lang.Object
-
- com.scriptbasic.executors.commands.AbstractCommand
-
- com.scriptbasic.executors.commands.CommandFor
-
- All Implemented Interfaces:
AnalysisResult,Executor,NestedStructure,Command
public class CommandFor extends AbstractCommand
- Author:
- Peter Verhas date July 20, 2012
-
-
Constructor Summary
Constructors Constructor Description CommandFor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Interpreter interpreter)LeftValuegetLoopVariable()voidsetLoopEndNode(CommandNext loopEndNode)voidsetLoopEndValue(Expression loopEndValue)voidsetLoopStartValue(Expression loopStartValue)voidsetLoopStepValue(Expression loopStepValue)voidsetLoopVariable(LeftValue loopVariable)-
Methods inherited from class com.scriptbasic.executors.commands.AbstractCommand
checkedExecute, getNextCommand, setNextCommand
-
-
-
-
Method Detail
-
setLoopEndNode
public void setLoopEndNode(CommandNext loopEndNode)
-
getLoopVariable
public LeftValue getLoopVariable()
-
setLoopVariable
public void setLoopVariable(LeftValue loopVariable)
-
setLoopStartValue
public void setLoopStartValue(Expression loopStartValue)
-
setLoopEndValue
public void setLoopEndValue(Expression loopEndValue)
-
setLoopStepValue
public void setLoopStepValue(Expression loopStepValue)
-
execute
public void execute(Interpreter interpreter) throws ScriptBasicException
- Specified by:
executein interfaceExecutor- Specified by:
executein classAbstractCommand- Parameters:
interpreter- parameter- Throws:
ScriptBasicException- in case there was an exception
-
-