public abstract class TokenPatternBase extends java.lang.Object
| Constructor and Description |
|---|
TokenPatternBase() |
| Modifier and Type | Method and Description |
|---|---|
protected TokenPatternMatch |
createMatch(TokenStream stream)
Utility method to create an empty match object.
|
protected abstract TokenPatternMatch |
matchesLocally(TokenStream stream)
Tries to match this pattern at the current position of the given stream.
|
void |
setGroupIndex(java.lang.Integer groupIndex) |
public TokenPatternBase()
public void setGroupIndex(java.lang.Integer groupIndex)
groupIndexprotected TokenPatternMatch createMatch(TokenStream stream)
protected abstract TokenPatternMatch matchesLocally(TokenStream stream)
null otherwise. May modify
the stream's position.