public class FirstBefore extends AbstractTokenStreamPattern
lastOccurrence
Constructor and Description |
---|
FirstBefore(TokenStreamPredicate lookFor,
TokenStreamPredicate stopAt) |
Modifier and Type | Method and Description |
---|---|
boolean |
processToken(int offset,
boolean topLevel)
Called on each token
|
fail, handleUnmatchedClosing, isTopLevel, result
public FirstBefore(TokenStreamPredicate lookFor, TokenStreamPredicate stopAt)
public boolean processToken(int offset, boolean topLevel)
TokenStreamPattern
topLevel
- see TokenStreamPattern.isTopLevel(int, int, int, int)
true
to stop