Class ParameterParseResult

java.lang.Object
me.yleoft.zAPI.command.parameter.ParameterParseResult

public class ParameterParseResult extends Object
Represents the result of parsing a command parameter. Contains the remaining arguments to be processed and whether further command dispatching should be stopped.
  • Constructor Details

    • ParameterParseResult

      public ParameterParseResult(String[] remainingArgs, boolean stopFurtherDispatch)
      Constructs a new ParameterParseResult with the specified remaining arguments and dispatching behavior.
      Parameters:
      remainingArgs - An array of remaining arguments to be processed by subsequent parameters or subcommands.
      stopFurtherDispatch - A boolean indicating whether further command dispatching should be stopped after this parameter is parsed.
  • Method Details

    • getRemainingArgs

      public String[] getRemainingArgs()
      Gets the remaining arguments after parsing the current parameter.
      Returns:
      An array of remaining arguments to be processed by subsequent parameters or subcommands.
    • shouldStopFurtherDispatch

      public boolean shouldStopFurtherDispatch()
      Indicates whether further command dispatching should be stopped after this parameter is parsed. If true, the command execution will not proceed to any subsequent parameters or subcommands.
      Returns:
      true if further dispatching should be stopped, false otherwise