public class DefaultCommandLine extends java.lang.Object
Implementation of the CommandLine interface.
Modifiers | Name | Description |
---|---|---|
static class |
DefaultCommandLine.SpecifiedOption |
Type | Name and description |
---|---|
java.lang.String |
commandName |
java.lang.String |
environment |
java.lang.String[] |
rawArguments |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addDeclaredOption(java.lang.String name, Option option) |
|
void |
addDeclaredOption(java.lang.String name, Option option, java.lang.Object value) |
|
void |
addRemainingArg(java.lang.String arg) |
|
void |
addSystemProperty(java.lang.String name, java.lang.String value) |
|
void |
addUndeclaredOption(java.lang.String option) |
|
void |
addUndeclaredOption(java.lang.String option, java.lang.Object value) |
|
java.lang.String |
getCommandName() |
|
java.lang.String |
getEnvironment() |
|
java.lang.String[] |
getRawArguments() |
|
java.util.List<java.lang.String> |
getRemainingArgs() |
|
java.lang.String[] |
getRemainingArgsArray() |
|
java.lang.String |
getRemainingArgsLineSeparated() |
|
java.lang.String |
getRemainingArgsString() |
|
java.lang.String |
getRemainingArgsWithOptionsString() |
|
java.util.Properties |
getSystemProperties() |
|
java.util.Map<java.lang.String, java.lang.Object> |
getUndeclaredOptions() |
|
boolean |
hasOption(java.lang.String name) |
|
boolean |
isEnvironmentSet() |
|
Map.Entry<java.lang.String, java.lang.Object> |
lastOption() |
|
java.lang.String |
lookupEnvironmentForCommand() |
|
java.lang.Object |
optionValue(java.lang.String name) |
|
CommandLine |
parseNew(java.lang.String[] args) |
|
void |
setCommand(java.lang.String name) |
|
void |
setCommandName(java.lang.String cmd) |
|
void |
setEnvironment(java.lang.String environment) |
|
void |
setRawArguments(java.lang.String[] args) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |