Class StrMatcher.NoMatcher

  • Enclosing class:
    StrMatcher

    static final class StrMatcher.NoMatcher
    extends StrMatcher
    Class used to match no characters.
    • Constructor Detail

      • NoMatcher

        NoMatcher()
        Constructs a new instance of NoMatcher.
    • Method Detail

      • isMatch

        public int isMatch​(char[] buffer,
                           int pos,
                           int bufferStart,
                           int bufferEnd)
        Always returns false.
        Specified by:
        isMatch in class StrMatcher
        Parameters:
        buffer - the text content to match against, do not change
        pos - the starting position for the match, valid for buffer
        bufferStart - the first active index in the buffer, valid for buffer
        bufferEnd - the end index of the active buffer, valid for buffer
        Returns:
        the number of matching characters, zero for no match