TokenStream
are intended to be consumed more than once, it is necessary to implement {@link #reset()}. Note that if your TokenStream caches tokens and feeds them back again after a reset, it is imperative that you clone the tokens when you store them away (on the first pass) as well as when you return them (on future passes after {@link #reset()}).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|