Class NfaMatcher<T>

java.lang.Object
org.jline.builtins.NfaMatcher<T>
Type Parameters:
T - the type of objects to match against the pattern

public class NfaMatcher<T> extends Object
Non-deterministic Finite Automaton (NFA) implementation for pattern matching.

This class implements a Thompson NFA for regular expression matching. It converts a regular expression to postfix notation, builds an NFA, and uses it to match sequences of objects against the pattern.

The implementation is based on the algorithm described in Russ Cox's article: https://swtch.com/~rsc/regexp/regexp1.html