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 Details

    • CommandSub

      public CommandSub()
  • Method Details

    • getSubName

      public String getSubName()
      Returns:
      the subName
    • setSubName

      public void setSubName(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:
      execute in interface Executor
      Specified by:
      execute in class AbstractCommand
      Parameters:
      interpreter - parameter