public class DefaultCommandLine extends java.lang.Object
Implementation of the CommandLine interface.
Modifiers | Name | Description |
---|---|---|
static class |
DefaultCommandLine.SpecifiedOption |
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.util.List<java.lang.String> |
getRemainingArgs() |
java.lang.String[] |
getRemainingArgsArray() |
java.lang.String |
getRemainingArgsLineSeparated() |
java.lang.String |
getRemainingArgsString() |
java.util.Properties |
getSystemProperties() |
java.util.Map<java.lang.String, java.lang.Object> |
getUndeclaredOptions() |
boolean |
hasOption(java.lang.String name) |
boolean |
isEnvironmentSet() |
java.lang.String |
lookupEnvironmentForCommand() |
java.lang.Object |
optionValue(java.lang.String name) |
void |
setCommand(java.lang.String name) |
void |
setCommandName(java.lang.String cmd) |
void |
setEnvironment(java.lang.String environment) |
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() |