Class UnicodeEscapePreprocessor


  • public class UnicodeEscapePreprocessor
    extends java.lang.Object
    Preprocesses Unicode escape characters in Java source code, as described in JLS ยง3.3.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static char ASCII_SUB  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean done()
      Returns true if all input has been read.
      int next()
      Returns the next unescaped Unicode input character.
      int position()
      Returns the current position in the input.
      java.lang.String readString​(int from, int to)
      Returns a substring of the raw (escaped) input.
      SourceFile source()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnicodeEscapePreprocessor

        public UnicodeEscapePreprocessor​(SourceFile source)
    • Method Detail

      • position

        public int position()
        Returns the current position in the input.
      • done

        public boolean done()
        Returns true if all input has been read.
      • next

        public int next()
        Returns the next unescaped Unicode input character.
      • readString

        public java.lang.String readString​(int from,
                                           int to)
        Returns a substring of the raw (escaped) input.