Class CommandSub
java.lang.Object
com.scriptbasic.executors.commands.AbstractCommand
com.scriptbasic.executors.commands.CommandSub
- All Implemented Interfaces:
AnalysisResult,Executor,NestedStructure,Command
public class CommandSub extends AbstractCommand
-
Constructor Summary
Constructors Constructor Description CommandSub() -
Method Summary
Modifier and Type Method Description voidexecute(Interpreter interpreter)Just jump over to the end sub and over that.LeftValueListgetArguments()CommandEndSubgetCommandEndSub()java.lang.StringgetSubName()voidsetArguments(LeftValueList arguments)voidsetCommandEndSub(CommandEndSub commandEndSub)voidsetSubName(java.lang.String subName)Methods inherited from class com.scriptbasic.executors.commands.AbstractCommand
checkedExecute, getNextCommand, setNextCommand
-
Constructor Details
-
CommandSub
public CommandSub()
-
-
Method Details
-
getSubName
public java.lang.String getSubName()- Returns:
- the subName
-
setSubName
public void setSubName(java.lang.String subName)- Parameters:
subName- the subName to set
-
getCommandEndSub
- Returns:
- the commandEndSub
-
setCommandEndSub
- Parameters:
commandEndSub- the commandEndSub to set
-
getArguments
- Returns:
- the arguments
-
setArguments
- Parameters:
arguments- the arguments to set
-
execute
Just jump over to the end sub and over that. Calling the function is implemented in the expressions and in command CALL.- Specified by:
executein interfaceExecutor- Specified by:
executein classAbstractCommand- Parameters:
interpreter- parameter
-