Package io.debezium.text
Class TokenStream.CaseInsensitiveToken
- java.lang.Object
-
- io.debezium.text.TokenStream.CaseSensitiveToken
-
- io.debezium.text.TokenStream.CaseInsensitiveToken
-
- All Implemented Interfaces:
TokenStream.Token
- Enclosing class:
- TokenStream
@Immutable protected class TokenStream.CaseInsensitiveToken extends TokenStream.CaseSensitiveToken
-
-
Constructor Summary
Constructors Constructor Description CaseInsensitiveToken(int startIndex, int endIndex, int type, Position position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(String expected)Determine if the token matches the supplied string.TokenStream.TokenwithType(int typeMask)Bitmask ORed with existing type value.-
Methods inherited from class io.debezium.text.TokenStream.CaseSensitiveToken
endIndex, length, matches, matches, matchString, position, startIndex, toString, type, value
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.debezium.text.TokenStream.Token
matches
-
-
-
-
Constructor Detail
-
CaseInsensitiveToken
public CaseInsensitiveToken(int startIndex, int endIndex, int type, Position position)
-
-
Method Detail
-
matches
public boolean matches(String expected)
Description copied from interface:TokenStream.TokenDetermine if the token matches the supplied string.- Specified by:
matchesin interfaceTokenStream.Token- Overrides:
matchesin classTokenStream.CaseSensitiveToken- Parameters:
expected- the expected value- Returns:
- true if the token's value matches the supplied value, or false otherwise
-
withType
public TokenStream.Token withType(int typeMask)
Description copied from interface:TokenStream.TokenBitmask ORed with existing type value.- Specified by:
withTypein interfaceTokenStream.Token- Overrides:
withTypein classTokenStream.CaseSensitiveToken- Parameters:
typeMask- the mask of types- Returns:
- copy of Token with new type
-
-