Class AbstractCommand
java.lang.Object
com.scriptbasic.executors.commands.AbstractCommand
- All Implemented Interfaces:
AnalysisResult,Executor,NestedStructure,Command
- Direct Known Subclasses:
AbstractCommandExpressionListed,AbstractCommandIfElseKind,AbstractCommandLeftValueListed,AbstractCommandSelectPart,AbstractInsecureCommand,CommandEndSelect,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
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)
-
Constructor Details
-
AbstractCommand
public AbstractCommand()
-
-
Method Details
-
execute
- Specified by:
executein interfaceExecutor- Parameters:
interpreter- parameter- Throws:
ScriptBasicException- in case there was an exception
-
checkedExecute
- Specified by:
checkedExecutein interfaceCommand- Throws:
ScriptBasicException
-
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
-