aboutsummaryrefslogtreecommitdiff
path: root/src/stubs/com/sun/tools
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2013-09-25 23:04:04 +0200
committerRoel Spilker <r.spilker@gmail.com>2013-09-25 23:04:04 +0200
commit728dddbc81d9f9bfbbd3f8217b8c94f3f201c83d (patch)
tree0b9d9b2bd0ec50e37ed5a82a748b936123fa847b /src/stubs/com/sun/tools
parent00a8b08226aa0daa2061d171607bf0d5369ed292 (diff)
downloadlombok-728dddbc81d9f9bfbbd3f8217b8c94f3f201c83d.tar.gz
lombok-728dddbc81d9f9bfbbd3f8217b8c94f3f201c83d.tar.bz2
lombok-728dddbc81d9f9bfbbd3f8217b8c94f3f201c83d.zip
[jdk8support] ... and javadoc copying support is back for javac8. Also fixed some copyright headers.
Diffstat (limited to 'src/stubs/com/sun/tools')
-rw-r--r--src/stubs/com/sun/tools/javac/parser/Tokens.java12
-rw-r--r--src/stubs/com/sun/tools/javac/tree/DocCommentTable.java10
2 files changed, 21 insertions, 1 deletions
diff --git a/src/stubs/com/sun/tools/javac/parser/Tokens.java b/src/stubs/com/sun/tools/javac/parser/Tokens.java
index 3d14d27c..6e0aa479 100644
--- a/src/stubs/com/sun/tools/javac/parser/Tokens.java
+++ b/src/stubs/com/sun/tools/javac/parser/Tokens.java
@@ -6,6 +6,16 @@ public class Tokens {
}
public interface Comment {
- enum CommentStyle {}
+ enum CommentStyle {
+ LINE, BLOCK, JAVADOC,
+ }
+
+ String getText();
+
+ int getSourcePos(int index);
+
+ CommentStyle getStyle();
+
+ boolean isDeprecated();
}
}
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);
+}