Class StringTerm

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean ignoreCase
      Ignore case when comparing?
      protected java.lang.String pattern
      The pattern.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected StringTerm​(java.lang.String pattern)
      Construct a StringTerm with the given pattern.
      protected StringTerm​(java.lang.String pattern, boolean ignoreCase)
      Construct a StringTerm with the given pattern and ignoreCase flag.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Equality comparison.
      boolean getIgnoreCase()
      Return true if we should ignore case when matching.
      java.lang.String getPattern()
      Return the string to match with.
      int hashCode()
      Compute a hashCode for this object.
      protected boolean match​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pattern

        protected java.lang.String pattern
        The pattern.
      • ignoreCase

        protected boolean ignoreCase
        Ignore case when comparing?
    • Constructor Detail

      • StringTerm

        protected StringTerm​(java.lang.String pattern)
        Construct a StringTerm with the given pattern. Case will be ignored.
        Parameters:
        pattern - the pattern
      • StringTerm

        protected StringTerm​(java.lang.String pattern,
                             boolean ignoreCase)
        Construct a StringTerm with the given pattern and ignoreCase flag.
        Parameters:
        pattern - the pattern
        ignoreCase - should we ignore case?
    • Method Detail

      • getPattern

        public java.lang.String getPattern()
        Return the string to match with.
        Returns:
        the string to match
      • getIgnoreCase

        public boolean getIgnoreCase()
        Return true if we should ignore case when matching.
        Returns:
        true if we should ignore case
      • match

        protected boolean match​(java.lang.String s)
      • equals

        public boolean equals​(java.lang.Object obj)
        Equality comparison.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Compute a hashCode for this object.
        Overrides:
        hashCode in class java.lang.Object