|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.cli.parsing.DefaultCommandLine
public class DefaultCommandLine extends java.lang.Object
Implementation of the CommandLine interface.
Nested Class Summary | |
---|---|
static class |
DefaultCommandLine.SpecifiedOption
|
Method Summary | |
---|---|
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
|
getRemainingArgs()
|
java.lang.String[]
|
getRemainingArgsArray()
|
java.lang.String
|
getRemainingArgsLineSeparated()
|
java.lang.String
|
getRemainingArgsString()
|
java.util.Properties
|
getSystemProperties()
|
java.util.Map
|
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 java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Method Detail |
---|
public void addDeclaredOption(java.lang.String name, Option option)
public void addDeclaredOption(java.lang.String name, Option option, java.lang.Object value)
public void addRemainingArg(java.lang.String arg)
public void addSystemProperty(java.lang.String name, java.lang.String value)
public void addUndeclaredOption(java.lang.String option)
public void addUndeclaredOption(java.lang.String option, java.lang.Object value)
public java.lang.String getCommandName()
public java.lang.String getEnvironment()
public java.util.List getRemainingArgs()
public java.lang.String[] getRemainingArgsArray()
public java.lang.String getRemainingArgsLineSeparated()
public java.lang.String getRemainingArgsString()
public java.util.Properties getSystemProperties()
public java.util.Map getUndeclaredOptions()
public boolean hasOption(java.lang.String name)
public boolean isEnvironmentSet()
public java.lang.String lookupEnvironmentForCommand()
public java.lang.Object optionValue(java.lang.String name)
public void setCommand(java.lang.String name)
public void setCommandName(java.lang.String cmd)
public void setEnvironment(java.lang.String environment)
Groovy Documentation