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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckedExecute(Interpreter interpreter) abstract voidexecute(Interpreter interpreter) 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
-