Class DefaultParser

java.lang.Object
org.jline.reader.impl.DefaultParser
All Implemented Interfaces:
Parser

public class DefaultParser extends Object implements Parser
Default implementation of the Parser interface.

This parser provides a flexible implementation for parsing command lines into tokens, with support for:

  • Quoted strings with customizable quote characters
  • Escaped characters with customizable escape characters
  • Bracket matching with customizable bracket pairs
  • Line and block comments with customizable delimiters
  • Command and variable name validation with customizable regex patterns

The parser is highly configurable through its chainable setter methods, allowing applications to customize its behavior to match their specific syntax requirements.

The parser also implements the CompletingParsedLine interface, which provides additional methods for handling completion with proper escaping of special characters.

See Also: