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
All Methods Instance Methods Concrete Methods 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
-
-
-
-
Method Detail
-
getSubName
public java.lang.String getSubName()
- Returns:
- the subName
-
setSubName
public void setSubName(java.lang.String subName)
- Parameters:
subName- the subName to set
-
getCommandEndSub
public CommandEndSub getCommandEndSub()
- Returns:
- the commandEndSub
-
setCommandEndSub
public void setCommandEndSub(CommandEndSub commandEndSub)
- Parameters:
commandEndSub- the commandEndSub to set
-
getArguments
public LeftValueList getArguments()
- Returns:
- the arguments
-
setArguments
public void setArguments(LeftValueList arguments)
- Parameters:
arguments- the arguments to set
-
execute
public void execute(Interpreter interpreter)
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
-
-