public abstract class SingleTokenPatternBase extends TokenPatternBase
| Constructor and Description |
|---|
SingleTokenPatternBase() |
| Modifier and Type | Method and Description |
|---|---|
protected TokenPatternMatch |
matchesLocally(TokenStream stream)
Tries to match this pattern at the current position of the given stream.
|
abstract boolean |
matchesToken(IToken token)
Returns
true if the pattern matches the given token. |
createMatch, setGroupIndexpublic SingleTokenPatternBase()
protected TokenPatternMatch matchesLocally(TokenStream stream)
null otherwise. May modify
the stream's position.matchesLocally in class TokenPatternBasepublic abstract boolean matchesToken(IToken token)
true if the pattern matches the given token.