@Immutable protected class TokenStream.CaseInsensitiveToken extends TokenStream.CaseSensitiveToken
| Constructor and Description |
|---|
CaseInsensitiveToken(int startIndex,
int endIndex,
int type,
Position position) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(String expected)
Determine if the token matches the supplied string.
|
TokenStream.Token |
withType(int typeMask)
Bitmask ORed with existing type value.
|
endIndex, length, matches, matches, matchString, position, startIndex, toString, type, valuepublic CaseInsensitiveToken(int startIndex,
int endIndex,
int type,
Position position)
public boolean matches(String expected)
TokenStream.Tokenmatches in interface TokenStream.Tokenmatches in class TokenStream.CaseSensitiveTokenexpected - the expected valuepublic TokenStream.Token withType(int typeMask)
TokenStream.TokenwithType in interface TokenStream.TokenwithType in class TokenStream.CaseSensitiveTokenCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.