Package com.google.turbine.parse
Class UnicodeEscapePreprocessor
- java.lang.Object
-
- com.google.turbine.parse.UnicodeEscapePreprocessor
-
public class UnicodeEscapePreprocessor extends java.lang.ObjectPreprocesses Unicode escape characters in Java source code, as described in JLS ยง3.3.
-
-
Field Summary
Fields Modifier and Type Field Description static charASCII_SUB
-
Constructor Summary
Constructors Constructor Description UnicodeEscapePreprocessor(SourceFile source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandone()Returns true if all input has been read.intnext()Returns the next unescaped Unicode input character.intposition()Returns the current position in the input.java.lang.StringreadString(int from, int to)Returns a substring of the raw (escaped) input.SourceFilesource()
-
-
-
Field Detail
-
ASCII_SUB
public static final char ASCII_SUB
- See Also:
- Constant Field Values
-
-
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.
-
source
public SourceFile source()
-
-