Package me.yleoft.zAPI.command.parameter
Class ParameterTabContext
java.lang.Object
me.yleoft.zAPI.command.parameter.ParameterTabContext
ParameterTabContext is a class that holds the context for tab completion of command parameters.
It contains the parameter for which tab completion is being performed and the arguments that have been entered for that parameter so far.
-
Constructor Summary
ConstructorsConstructorDescriptionParameterTabContext(Parameter parameter, String[] parameterArgsSoFar) Constructs a new ParameterTabContext with the given parameter and arguments. -
Method Summary
Modifier and TypeMethodDescriptionGet the parameter for which tab completion is being performed.String[]Get the arguments that have been entered for the parameter so far.
-
Constructor Details
-
ParameterTabContext
Constructs a new ParameterTabContext with the given parameter and arguments.- Parameters:
parameter- the parameter for which tab completion is being performedparameterArgsSoFar- the arguments that have been entered for the parameter so far
-
-
Method Details
-
getParameter
Get the parameter for which tab completion is being performed.- Returns:
- the parameter for which tab completion is being performed
-
getParameterArgsSoFar
Get the arguments that have been entered for the parameter so far.- Returns:
- the arguments that have been entered for the parameter so far
-