public class ShellCommand
extends java.lang.Object
Engine
. The command is guaranteed to be
syntactically, but not necessarily semantically valid (although the swallowed content might not be syntactically
correct). The command and its flags might not exist. This Object is immutable.Modifier and Type | Method and Description |
---|---|
java.util.Iterator<ShellArgument> |
getArguments()
Get an Iterator of the arguments passed to the command.
|
char[] |
getFlags()
Get an array of flags set for the command.
|
java.lang.String |
getName()
Get the supplied command name.
|
java.lang.String |
getSwallowed()
Get any content swallowed by the command.
|
boolean |
hasSwallowed()
Return a boolean whether or not this ShellCommand has specified any swallowed content.
|
boolean |
isInvocable()
Return a boolean whether or not this ShellCommand was invoked without any swallowed content.
|
java.lang.String |
toString() |
public java.lang.String getName()
public java.util.Iterator<ShellArgument> getArguments()
public char[] getFlags()
public java.lang.String getSwallowed()
public boolean hasSwallowed()
public boolean isInvocable()
public java.lang.String toString()
toString
in class java.lang.Object