From f2662518de40569e073991bc70a1629881ba655e Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 9 Sep 2013 20:40:04 +0200 Subject: [jdk8support] jdk8 support branch now compiles under javac7, and produces lombok.jar that works on all javas. --- .../com/sun/tools/javac/parser/JavaTokenizer.java | 19 +++++++++++++++++++ src/stubs/com/sun/tools/javac/parser/JavacParser.java | 12 ++++++++++++ src/stubs/com/sun/tools/javac/parser/Tokens.java | 11 +++++++++++ .../com/sun/tools/javac/parser/UnicodeReader.java | 18 ++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java create mode 100644 src/stubs/com/sun/tools/javac/parser/JavacParser.java create mode 100644 src/stubs/com/sun/tools/javac/parser/Tokens.java create mode 100644 src/stubs/com/sun/tools/javac/parser/UnicodeReader.java (limited to 'src/stubs/com/sun/tools/javac/parser') diff --git a/src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java b/src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java new file mode 100644 index 00000000..7d5bbcb1 --- /dev/null +++ b/src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java @@ -0,0 +1,19 @@ +package com.sun.tools.javac.parser; + +import com.sun.tools.javac.parser.Tokens.Comment; +import com.sun.tools.javac.parser.Tokens.Comment.CommentStyle; + +public class JavaTokenizer { + protected UnicodeReader reader; + + protected JavaTokenizer(ScannerFactory fac, UnicodeReader reader) { + } + + public com.sun.tools.javac.parser.Tokens.Token readToken() { + return null; + } + + protected Comment processComment(int pos, int endPos, CommentStyle style) { + return null; + } +} diff --git a/src/stubs/com/sun/tools/javac/parser/JavacParser.java b/src/stubs/com/sun/tools/javac/parser/JavacParser.java new file mode 100644 index 00000000..da42f37a --- /dev/null +++ b/src/stubs/com/sun/tools/javac/parser/JavacParser.java @@ -0,0 +1,12 @@ +package com.sun.tools.javac.parser; + +import com.sun.tools.javac.tree.JCTree; + +public class JavacParser { + protected JavacParser(ParserFactory fac, Lexer S, boolean keepDocComments, boolean keepLineMap, boolean keepEndPositions) { + } + + public JCTree.JCCompilationUnit parseCompilationUnit() { + return null; + } +} diff --git a/src/stubs/com/sun/tools/javac/parser/Tokens.java b/src/stubs/com/sun/tools/javac/parser/Tokens.java new file mode 100644 index 00000000..3d14d27c --- /dev/null +++ b/src/stubs/com/sun/tools/javac/parser/Tokens.java @@ -0,0 +1,11 @@ +package com.sun.tools.javac.parser; + +public class Tokens { + public static class Token { + + } + + public interface Comment { + enum CommentStyle {} + } +} diff --git a/src/stubs/com/sun/tools/javac/parser/UnicodeReader.java b/src/stubs/com/sun/tools/javac/parser/UnicodeReader.java new file mode 100644 index 00000000..1c09eb6b --- /dev/null +++ b/src/stubs/com/sun/tools/javac/parser/UnicodeReader.java @@ -0,0 +1,18 @@ +package com.sun.tools.javac.parser; + +import java.nio.CharBuffer; + +public class UnicodeReader { + protected int bp; + + protected UnicodeReader(ScannerFactory sf, char[] input, int inputLength) { + } + + protected UnicodeReader(ScannerFactory sf, CharBuffer buffer) { + + } + + public char[] getRawCharacters(int beginIndex, int endIndex) { + return null; + } +} -- cgit