All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kohsuke.args4j.spi.Parameters Maven / Gradle / Ivy

package org.kohsuke.args4j.spi;

import org.kohsuke.args4j.CmdLineException;

/**
 * List of arguments.
 *
 * 

* Object of this interface is passed to * {@link OptionHandler}s to make it easy/safe to parse * additional parameters for options. */ public interface Parameters { /** * Gets the additional parameter to this option. * * @param idx * specifying 0 will retrieve the token next to the option. * For example, if the command line looks like -o abc -d x, * then {@code getParameter(0)} for -o returns {@code abc} * and {@code getParameter(1)} will return -d. * * @return * Always return non-{@code null} valid {@code String}. If an attempt is * made to access a non-existent index, this method throws * appropriate {@link org.kohsuke.args4j.CmdLineException}. */ String getParameter(int idx) throws CmdLineException; /** * Number of remaining tokens. */ int size(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy