aboutsummaryrefslogtreecommitdiff
path: root/src/stubs/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/stubs/com')
-rw-r--r--src/stubs/com/sun/tools/javac/main/Option.java10
-rw-r--r--src/stubs/com/sun/tools/javac/parser/JavaTokenizer.java19
-rw-r--r--src/stubs/com/sun/tools/javac/parser/JavacParser.java12
-rw-r--r--src/stubs/com/sun/tools/javac/parser/Scanner.java3
-rw-r--r--src/stubs/com/sun/tools/javac/parser/Tokens.java21
-rw-r--r--src/stubs/com/sun/tools/javac/parser/UnicodeReader.java18
-rw-r--r--src/stubs/com/sun/tools/javac/tree/DocCommentTable.java10
7 files changed, 93 insertions, 0 deletions
diff --git a/src/stubs/com/sun/tools/javac/main/Option.java b/src/stubs/com/sun/tools/javac/main/Option.java
new file mode 100644
index 00000000..f3229c78
--- /dev/null
+++ b/src/stubs/com/sun/tools/javac/main/Option.java
@@ -0,0 +1,10 @@
+/*
+ * These are stub versions of various bits of javac-internal API (for various different versions of javac). Lombok is compiled against these.
+ */
+package com.sun.tools.javac.main;
+
+
+public enum Option {
+ ;
+ public String text;
+}
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/Scanner.java b/src/stubs/com/sun/tools/javac/parser/Scanner.java
index 266208e5..36c93df7 100644
--- a/src/stubs/com/sun/tools/javac/parser/Scanner.java
+++ b/src/stubs/com/sun/tools/javac/parser/Scanner.java
@@ -20,6 +20,9 @@ public class Scanner implements Lexer {
protected Scanner(ScannerFactory fac, char[] input, int inputLength) {
}
+ protected Scanner(ScannerFactory fac, JavaTokenizer tokenizer) {
+ }
+
public static class Factory {
public static final Context.Key<Scanner.Factory> scannerFactoryKey = 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..6e0aa479
--- /dev/null
+++ b/src/stubs/com/sun/tools/javac/parser/Tokens.java
@@ -0,0 +1,21 @@
+package com.sun.tools.javac.parser;
+
+public class Tokens {
+ public static class Token {
+
+ }
+
+ public interface Comment {
+ enum CommentStyle {
+ LINE, BLOCK, JAVADOC,
+ }
+
+ String getText();
+
+ int getSourcePos(int index);
+
+ CommentStyle getStyle();
+
+ boolean isDeprecated();
+ }
+}
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;
+ }
+}
diff --git a/src/stubs/com/sun/tools/javac/tree/DocCommentTable.java b/src/stubs/com/sun/tools/javac/tree/DocCommentTable.java
new file mode 100644
index 00000000..75b2526a
--- /dev/null
+++ b/src/stubs/com/sun/tools/javac/tree/DocCommentTable.java
@@ -0,0 +1,10 @@
+package com.sun.tools.javac.tree;
+
+import com.sun.tools.javac.parser.Tokens.Comment;
+
+public interface DocCommentTable {
+ boolean hasComment(JCTree tree);
+ Comment getComment(JCTree tree);
+ String getCommentText(JCTree tree);
+ void putComment(JCTree tree, Comment c);
+}