Class ParameterTabContext

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

public class ParameterTabContext extends Object
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 Details

    • ParameterTabContext

      public ParameterTabContext(Parameter parameter, String[] parameterArgsSoFar)
      Constructs a new ParameterTabContext with the given parameter and arguments.
      Parameters:
      parameter - the parameter for which tab completion is being performed
      parameterArgsSoFar - the arguments that have been entered for the parameter so far
  • Method Details

    • getParameter

      public Parameter getParameter()
      Get the parameter for which tab completion is being performed.
      Returns:
      the parameter for which tab completion is being performed
    • getParameterArgsSoFar

      public String[] 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