Class Compiler

    • Constructor Detail

      • Compiler

        public Compiler()
    • Method Detail

      • create

        public static Compiler create()
        Create a new Compiler object depending on the used implementation
        Returns:
        Compiler object with the used implementation
      • setMultiline

        public abstract void setMultiline​(boolean multiline)
        Whether the compiler should create multiline patterns or single line patterns.
        Parameters:
        multiline - True if the pattern is multiline, otherwise false
      • compile

        public abstract Pattern compile​(String regex)
        Compile a String regular expression to a regex pattern
        Parameters:
        regex - String representation of a regular expression
        Returns:
        Compiled regular expression