|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.faunos.util.main.Arguments
public class Arguments
Support for parsing command line arguments.
| Constructor Summary | |
|---|---|
Arguments()
Default constructor. |
|
Arguments(Collection<String> identifiers)
Creates a new instance with the specified option identifiers. |
|
Arguments(Options options)
Creates a new instance with the given Options. |
|
| Method Summary | |
|---|---|
void |
addToken(String token)
Adds the given command line token. |
List<String> |
getArgumentList()
Returns the argument tokens supplied from the command line that were not interpreted as options. |
List<String> |
getOptionList()
Returns the list of options supplied from the command line. |
Options |
getOptions()
Returns the Options configured for this instance. |
void |
parse(String[] args)
Parses the given command line tokens and populates the option- and argument- lists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Arguments()
getOptions()public Arguments(Options options)
Options.
getOptions()public Arguments(Collection<String> identifiers)
identifiers.
getOptions()| Method Detail |
|---|
public List<String> getOptionList()
parse(String[]) or
addToken(String)
public Options getOptions()
Options configured for this instance.
public List<String> getArgumentList()
parse(String[]) or
addToken(String)
public void addToken(String token)
public void parse(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||