Class AbstractCommand
- java.lang.Object
-
- com.scriptbasic.executors.commands.AbstractCommand
-
- All Implemented Interfaces:
AnalysisResult,Executor,NestedStructure,Command
- Direct Known Subclasses:
AbstractCommandExpressionListed,AbstractCommandIfElseKind,AbstractCommandLeftValueListed,AbstractInsecureCommand,CommandEndSub,CommandFor,CommandLet,CommandNext,CommandReturn,CommandSub,CommandWend,CommandWhile
public abstract class AbstractCommand extends java.lang.Object implements Executor, Command, NestedStructure
-
-
Constructor Summary
Constructors Constructor Description AbstractCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcheckedExecute(Interpreter interpreter)abstract voidexecute(Interpreter interpreter)CommandgetNextCommand()Get the next command that has to be executed unless some condition alters this, like in case of If, While and similar.voidsetNextCommand(Command nextCommand)
-
-
-
Method Detail
-
execute
public abstract void execute(Interpreter interpreter) throws ScriptBasicException
- Specified by:
executein interfaceExecutor- Parameters:
interpreter- parameter- Throws:
ScriptBasicException- in case there was an exception
-
checkedExecute
public void checkedExecute(Interpreter interpreter) throws ScriptBasicException
- Specified by:
checkedExecutein interfaceCommand- Throws:
ScriptBasicException
-
getNextCommand
public Command getNextCommand()
Get the next command that has to be executed unless some condition alters this, like in case of If, While and similar.- Specified by:
getNextCommandin interfaceCommand- Returns:
- return value
-
setNextCommand
public void setNextCommand(Command nextCommand)
-
-