Package org.jline.console.impl
Class SystemRegistryImpl.ArgsParser
java.lang.Object
org.jline.console.impl.SystemRegistryImpl.ArgsParser
- Enclosing class:
- SystemRegistryImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs()
private int
closingQuote
(String arg) command()
private void
enclosedArgs
(List<String> words) private boolean
boolean
isEnclosed
(String arg) line()
private void
void
private void
reset()
private String
Unescapes a string that contains standard Java escape sequences.private String
variable()
-
Field Details
-
round
private int round -
curly
private int curly -
square
private int square -
quoted
private boolean quoted -
doubleQuoted
private boolean doubleQuoted -
line
-
command
-
variable
-
args
-
parser
-
-
Constructor Details
-
ArgsParser
-
-
Method Details
-
reset
private void reset() -
next
-
isEnclosed
private boolean isEnclosed() -
isEnclosed
-
enclosedArgs
-
parse
-
line
-
command
-
rawCommand
-
variable
-
args
-
closingQuote
-
unquote
-
unescape
Unescapes a string that contains standard Java escape sequences.- \b \f \n \r \t \" \' : BS, FF, NL, CR, TAB, double and single quote.
- \X \XX \XXX : Octal character specification (0 - 377, 0x00 - 0xFF).
- \uXXXX : Hexadecimal based Unicode character.
- Parameters:
arg
- A string optionally containing standard java escape sequences.- Returns:
- The translated string.
-