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