aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/JavacAST.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-11-22 23:02:08 +0100
committerRoel Spilker <r.spilker@gmail.com>2010-11-22 23:02:08 +0100
commit8eb05b357d37b8e58cfb4ecb331371c88f1a856b (patch)
tree6576e7498333121091568bfaca600278977611df /src/core/lombok/javac/JavacAST.java
parent3a89cbe7e7610c649c45e3647d766fdb027f068d (diff)
parent7dede9a6647ded762701d70d6e71066557196fb5 (diff)
downloadlombok-8eb05b357d37b8e58cfb4ecb331371c88f1a856b.tar.gz
lombok-8eb05b357d37b8e58cfb4ecb331371c88f1a856b.tar.bz2
lombok-8eb05b357d37b8e58cfb4ecb331371c88f1a856b.zip
Merge branch 'master' of git@github.com:rzwitserloot/lombok
Diffstat (limited to 'src/core/lombok/javac/JavacAST.java')
-rw-r--r--src/core/lombok/javac/JavacAST.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/lombok/javac/JavacAST.java b/src/core/lombok/javac/JavacAST.java
index fb837255..35916fa5 100644
--- a/src/core/lombok/javac/JavacAST.java
+++ b/src/core/lombok/javac/JavacAST.java
@@ -34,6 +34,7 @@ import lombok.core.AST;
import com.sun.tools.javac.code.Symtab;
import com.sun.tools.javac.model.JavacElements;
+import com.sun.tools.javac.model.JavacTypes;
import com.sun.tools.javac.tree.JCTree;
import com.sun.tools.javac.tree.TreeMaker;
import com.sun.tools.javac.tree.JCTree.JCAnnotation;
@@ -61,6 +62,7 @@ public class JavacAST extends AST<JavacAST, JavacNode, JCTree> {
private final JavacElements elements;
private final TreeMaker treeMaker;
private final Symtab symtab;
+ private final JavacTypes javacTypes;
private final Log log;
private final Context context;
@@ -80,6 +82,7 @@ public class JavacAST extends AST<JavacAST, JavacNode, JCTree> {
this.elements = JavacElements.instance(context);
this.treeMaker = TreeMaker.instance(context);
this.symtab = Symtab.instance(context);
+ this.javacTypes = JavacTypes.instance(context);
clearChanged();
}
@@ -135,6 +138,13 @@ public class JavacAST extends AST<JavacAST, JavacNode, JCTree> {
return symtab;
}
+ /**
+ * @return The implementation of {@link javax.lang.model.util.Types} of javac. Contains a few extra methods beyond
+ * the ones listed in the official annotation API interface. */
+ public JavacTypes getTypesUtil() {
+ return javacTypes;
+ }
+
/** {@inheritDoc} */
@Override protected JavacNode buildTree(JCTree node, Kind kind) {
switch (kind) {