|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.virion.jam.app.Arguments
public class Arguments
Nested Class Summary | |
---|---|
static class |
Arguments.ArgumentException
|
static class |
Arguments.IntegerArrayOption
|
static class |
Arguments.IntegerOption
|
static class |
Arguments.Option
|
static class |
Arguments.RealArrayOption
|
static class |
Arguments.RealOption
|
static class |
Arguments.StringOption
|
Field Summary | |
---|---|
static String |
ARGUMENT_CHARACTER
|
Constructor Summary | |
---|---|
Arguments(Arguments.Option[] options)
Parse a list of arguments ready for accessing |
|
Arguments(Arguments.Option[] options,
boolean caseSensitive)
|
Method Summary | |
---|---|
int[] |
getIntegerArrayOption(String label)
Return the value of an integer array option |
int |
getIntegerOption(String label)
Return the value of an integer option |
String[] |
getLeftoverArguments()
Return any arguments leftover after the options |
double[] |
getRealArrayOption(String label)
Return the value of an real array option |
double |
getRealOption(String label)
Return the value of an real number option |
String |
getStringOption(String label)
Return the value of an string option |
boolean |
hasOption(String label)
Does an argument with label exist? |
void |
parseArguments(String[] arguments)
Parse a list of arguments ready for accessing |
void |
printUsage(String name,
String commandLine)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ARGUMENT_CHARACTER
Constructor Detail |
---|
public Arguments(Arguments.Option[] options)
public Arguments(Arguments.Option[] options, boolean caseSensitive)
Method Detail |
---|
public void parseArguments(String[] arguments) throws Arguments.ArgumentException
Arguments.ArgumentException
public boolean hasOption(String label)
public int getIntegerOption(String label)
public int[] getIntegerArrayOption(String label)
public double getRealOption(String label)
public double[] getRealArrayOption(String label)
public String getStringOption(String label)
public String[] getLeftoverArguments()
public void printUsage(String name, String commandLine)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |