Package org.jline.reader
Interface Parser
- All Known Implementing Classes:
DefaultParser
public interface Parser
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
getCommand
(String line) default String
getVariable
(String line) default boolean
isEscapeChar
(char ch) default ParsedLine
parse
(String line, int cursor, Parser.ParseContext context) default boolean
validCommandName
(String name) default boolean
validVariableName
(String name)
-
Field Details
-
REGEX_VARIABLE
- See Also:
-
REGEX_COMMAND
- See Also:
-
-
Method Details
-
parse
- Throws:
SyntaxError
-
parse
- Throws:
SyntaxError
-
isEscapeChar
default boolean isEscapeChar(char ch) -
validCommandName
-
validVariableName
-
getCommand
-
getVariable
-