|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dtolabs.rundeck.core.execution.ExecArg
public abstract class ExecArg
Represents a command-line argument, that may need to be quoted/escaped before use, and may contain a list of other arguments to be quoted.
Nested Class Summary | |
---|---|
static interface |
ExecArg.Visitor
Visitor to visit args |
Constructor Summary | |
---|---|
ExecArg()
|
Method Summary | |
---|---|
abstract void |
accept(ExecArg.Visitor converter)
Accept a visitor |
static ExecArg |
fromString(java.lang.String arg,
boolean quoted)
|
abstract java.util.List<ExecArg> |
getList()
Return the sublist of args, if isList() returns true, null otherwise |
abstract java.lang.String |
getString()
Return the string value of this argument if isList() returns false, null otherwise |
abstract boolean |
isList()
Return true if this arg contains a list of other args |
boolean |
isQuoted()
Return true if this arg should be quoted |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExecArg()
Method Detail |
---|
public abstract boolean isList()
public abstract java.util.List<ExecArg> getList()
isList()
returns true, null otherwise
public abstract java.lang.String getString()
isList()
returns false, null otherwise
public abstract void accept(ExecArg.Visitor converter)
converter
- public boolean isQuoted()
public static ExecArg fromString(java.lang.String arg, boolean quoted)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |