getRawCharacters in langtools 8

Antonio Tancredi nazareno.tancredi at
Tue Dec 3 09:41:51 PST 2013

I used to get the text for a token using the getRawCharacters from the
Scanner class.
For instance, here:

public class Wolf {
  void f() {
    long i = 1L;

for the long literal, I want to get back the text '1L' not just '1'.

In langtools 8, is there any way to access getRawCharacters from
UnicodeReader without extends anything (I think that extending the
tokenizer and the scanner could do the trick)?


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the compiler-dev mailing list