Class CompletionMatcherImpl

java.lang.Object
org.jline.reader.impl.CompletionMatcherImpl
All Implemented Interfaces:
CompletionMatcher

public class CompletionMatcherImpl extends Object implements CompletionMatcher
Default implementation of the CompletionMatcher interface.

This matcher provides sophisticated algorithms for matching completion candidates against user input, with support for:

  • Prefix matching - candidates that start with the input text
  • Substring matching - candidates that contain the input text
  • Camel case matching - matching based on camel case patterns
  • Fuzzy matching - candidates that approximately match with allowed typos

The matcher uses a chain of matching strategies, trying each one in sequence until matches are found. This allows for a graceful fallback from exact matches to more approximate matches.

The behavior of the matcher can be controlled through LineReader options such as LineReader.Option.COMPLETE_MATCHER_TYPO and LineReader.Option.COMPLETE_MATCHER_CAMELCASE.

See Also: