@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, value
public CaseInsensitiveToken(int startIndex, int endIndex, int type, Position position)
public boolean matches(String expected)
TokenStream.Token
matches
in interface TokenStream.Token
matches
in class TokenStream.CaseSensitiveToken
expected
- the expected valuepublic TokenStream.Token withType(int typeMask)
TokenStream.Token
withType
in interface TokenStream.Token
withType
in class TokenStream.CaseSensitiveToken
typeMask
- the mask of typesCopyright © 2016 JBoss by Red Hat. All rights reserved.