Package me.yleoft.zAPI.command.parameter
Class ParameterParseResult
java.lang.Object
me.yleoft.zAPI.command.parameter.ParameterParseResult
Represents the result of parsing a command parameter.
Contains the remaining arguments to be processed and whether further command dispatching should be stopped.
-
Constructor Summary
ConstructorsConstructorDescriptionParameterParseResult(String[] remainingArgs, boolean stopFurtherDispatch) Constructs a new ParameterParseResult with the specified remaining arguments and dispatching behavior. -
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the remaining arguments after parsing the current parameter.booleanIndicates whether further command dispatching should be stopped after this parameter is parsed.
-
Constructor Details
-
ParameterParseResult
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
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
-