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