Class StrMatcher.NoMatcher
java.lang.Object
org.apache.logging.log4j.core.lookup.StrMatcher
org.apache.logging.log4j.core.lookup.StrMatcher.NoMatcher
- Enclosing class:
StrMatcher
Class used to match no characters.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.logging.log4j.core.lookup.StrMatcher
StrMatcher.CharMatcher, StrMatcher.CharSetMatcher, StrMatcher.NoMatcher, StrMatcher.StringMatcher, StrMatcher.TrimMatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintisMatch(char[] buffer, int pos, int bufferStart, int bufferEnd) Always returnsfalse.Methods inherited from class org.apache.logging.log4j.core.lookup.StrMatcher
charMatcher, charSetMatcher, charSetMatcher, commaMatcher, doubleQuoteMatcher, isMatch, noneMatcher, quoteMatcher, singleQuoteMatcher, spaceMatcher, splitMatcher, stringMatcher, tabMatcher, trimMatcher
-
Constructor Details
-
NoMatcher
NoMatcher()Constructs a new instance ofNoMatcher.
-
-
Method Details
-
isMatch
public int isMatch(char[] buffer, int pos, int bufferStart, int bufferEnd) Always returnsfalse.- Specified by:
isMatchin classStrMatcher- Parameters:
buffer- the text content to match against, do not changepos- the starting position for the match, valid for bufferbufferStart- the first active index in the buffer, valid for bufferbufferEnd- the end index of the active buffer, valid for buffer- Returns:
- the number of matching characters, zero for no match
-