Class PatternMatch

  • All Implemented Interfaces:
    Predicate<String>

    public class PatternMatch
    extends Object
    implements Predicate<String>
    Predicate for PatternMatching.
    Author:
    Clement Pang (clement@wavefront.com).
    • Method Detail

      • buildPredicate

        public static Predicate<String> buildPredicate​(String pattern,
                                                       boolean caseInsensitive)
      • convert

        public static com.google.re2j.Pattern convert​(String pattern)
      • makeAutomaton

        public static dk.brics.automaton.RunAutomaton makeAutomaton​(String pattern)
        Construct a new automaton from a pattern that can only contain *.
        Parameters:
        pattern - Pattern that can only contain *.
        Returns:
        An automaton that can match the given pattern.