Class PatternInfo


  • public class PatternInfo
    extends java.lang.Object
    Represents a regular expression including associated title.
    • Constructor Summary

      Constructors 
      Constructor Description
      PatternInfo​(java.lang.String title, java.lang.String expression)
      Create a new instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void compile​(boolean caseSensitive, boolean multiline, boolean dotAll)
      Compiles the regular expression String provided into a Java Pattern object
      java.lang.String getExpression()
      Gets the Java regular expression string associated with this instance
      java.util.regex.Pattern getPattern()
      Gets the compiled Pattern object.
      java.lang.String getTitle()
      Gets the title associated with this instance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PatternInfo

        public PatternInfo​(java.lang.String title,
                           java.lang.String expression)
        Create a new instance
        Parameters:
        title - The associated title of this pattern
        expression - The Java regular expression
    • Method Detail

      • compile

        public void compile​(boolean caseSensitive,
                            boolean multiline,
                            boolean dotAll)
        Compiles the regular expression String provided into a Java Pattern object
        Parameters:
        caseSensitive - Whether it should be case sensitive
        multiline - Whether the multi-line matching flag should be set
        dotAll - Whether the dot matches all flag should be set
      • getTitle

        public java.lang.String getTitle()
        Gets the title associated with this instance
        Returns:
        The associated title
      • getExpression

        public java.lang.String getExpression()
        Gets the Java regular expression string associated with this instance
        Returns:
        The Java regular expression string