- Enclosing class:
ShellInterpreter
-
Method Details
-
getRawArgs
The raw arguments, with all original characters unmodified. None of the elements can be an empty string, even if it represents an empty argument once decoded.- Returns:
- The array without any defensive copying.
When an empty array, returns
EmptyArrays.EMPTY_STRING_ARRAY.When an argument is identical in raw and decoded forms, the element in both
rawArgsandargswill be the sameStringinstance.When all arguments are identical in both
rawArgsandargs, the sameString[]instance is returned.
-
getArgs
The resulting arguments, with backslash escapes decoded. Some of the elements can be an empty string representing an empty argument.- Returns:
- The array without any defensive copying.
When an empty array, returns
EmptyArrays.EMPTY_STRING_ARRAY.When an argument is identical in raw and decoded forms, the element in both
rawArgsandargswill be the sameStringinstance.When all arguments are identical in both
rawArgsandargs, the sameString[]instance is returned.
-
isAtEof
public boolean isAtEof()Did the parser reach end of file on the input? The parser stops at either end-of-file or the firstShellInterpreter.NLthat is not escaped or quoted.
-
