Class GlobDictionary

  • All Implemented Interfaces:
    Predicate<CharSequence>

    public class GlobDictionary
    extends Object
    implements Predicate<CharSequence>
    This dictionary implementation is a middle ground between the complexity of regular expressions and sheer speed of plain text matching. It offers case sensitive and case insensitive matching, as well as globs (wildcards matching any token sequence).

    The following wildcards are available:

    • * - matches zero or more tokens (possessive match),
    • *? - matches zero or more tokens (reluctant match),
    • + - matches one or more tokens (possessive match),
    • +? - matches zero or more tokens (reluctant match),
    • ? - matches exactly one token (possessive).

    In addition, a token type matching is provide in the form of:

    • {name} - matches a token with flags named name.

    Token flags are an int bitfield.