- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
An external hook to see and alter token types reported by lexer.
-
Method Details
-
filter
An external hook to see and alter token types reported by lexer.
A lexer might take a delegate implementing this interface.
- Parameters:
source - type of an element as lexer understood it.
start - start index of lexeme in text (as lexer.getTokenStart() would return).
end - end index of lexeme in text (as lexer.getTokenEnd() would return).
text - text being parsed.
- Returns:
- altered (or not) element type.