Package com.martiansoftware.jsap
package com.martiansoftware.jsap
-
ClassDescriptionA utility class to parse a command line contained in a single String into an array of argument tokens, much as the JVM (or more accurately, your operating system) does before calling your programs'
public static void main(String[] args)
methods.Stores a collection of default values, associated with their respective parameters by the parameters' unique IDs.An interface describing an object as being able to produce a set of default values.A class for aggregating exceptions thrown by JSAP's parsing process.Marks an argument as being "flagged" - that is, as having its value on the command line preceded by an indicator.An option that implements the Flagged interface.A utility class to allow lookups of parameter IDs by short flag or long flag.An exception indicating that a parameter has illegally been declared multiple times.The core class of the JSAP (Java Simple Argument Parser) API.The base class for all of JSAP's exceptions.Encapsulates the results of JSAP's parse() methods.The base class from which FlaggedOption and UnflaggedOption are derived.Top-level abstraction of a parameter.A JSAPException subclass notifying the application of a parse error.AStringParser
subclass that provides a means for setting/getting properties.A QualifiedSwitch is a parameter that has something in common with a Switch, i.e., its presence or absence is significant, but different from a "pure" Switch it can have an additional value (or values) prefixed by a ':' sign that qualifies the Switch - making it behave like a FlaggedOption if a value is specified.An exception indicating that a required parameter was missing from the supplied arguments and defaults.A simple interface toJSAP
that handles directly help, explanation and an array of parameters.Class responsible for converting Strings into Objects.A Switch is a parameter whose presence alone is significant; another commonly used term for a Switch is "Flag".An exception indicating that a syntax error was encountered in the argument list.An option whose meaning is derived from its position in the argument list rather than a flag that precedes it.An exception indicating that a unknown flag has been specified.An exception thrown when an argument that requires a conversion (e.g., an integer) has no associated value, but it is retrieved by means of a type-specified method (e.g.,JSAPResult.getInt(String)
).