aboutsummaryrefslogtreecommitdiff
path: root/src/stubs/com/sun
diff options
context:
space:
mode:
Diffstat (limited to 'src/stubs/com/sun')
-rw-r--r--src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java b/src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java
index 7d5bbcb1..cde6b325 100644
--- a/src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java
+++ b/src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java
@@ -1,11 +1,15 @@
package com.sun.tools.javac.parser;
+import java.nio.CharBuffer;
+
import com.sun.tools.javac.parser.Tokens.Comment;
import com.sun.tools.javac.parser.Tokens.Comment.CommentStyle;
public class JavaTokenizer {
+ // used before java 16
protected UnicodeReader reader;
+ // used before java 16
protected JavaTokenizer(ScannerFactory fac, UnicodeReader reader) {
}
@@ -16,4 +20,17 @@ public class JavaTokenizer {
protected Comment processComment(int pos, int endPos, CommentStyle style) {
return null;
}
+
+ // used in java 16
+ protected JavaTokenizer(ScannerFactory fac, char[] buf, int inputLength) {
+ }
+
+ // used in java 16
+ protected JavaTokenizer(ScannerFactory fac, CharBuffer buf) {
+ }
+
+ // introduced in java 16
+ protected int position() {
+ return -1;
+ }
}