aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/javac/apt/Processor.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-10-18 17:48:27 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-10-18 17:48:27 +0200
commit17c8f5a0196f5b56361241147e6bcf19eeb2d2ce (patch)
tree77bcb1d38f94569fd622c19a5f9701435f24aa36 /src/lombok/javac/apt/Processor.java
parent4da08ce3ccdd94f48856bd77b3dff50a77c150b1 (diff)
downloadlombok-17c8f5a0196f5b56361241147e6bcf19eeb2d2ce.tar.gz
lombok-17c8f5a0196f5b56361241147e6bcf19eeb2d2ce.tar.bz2
lombok-17c8f5a0196f5b56361241147e6bcf19eeb2d2ce.zip
Added the ability to get the Context object via JavacAST, useful for various things, and specifically requested by David McCullars, who is working on rolling their own lombok extensions.
See: http://groups.google.com/group/project-lombok/browse_thread/thread/a73972d4011a3e21
Diffstat (limited to 'src/lombok/javac/apt/Processor.java')
-rw-r--r--src/lombok/javac/apt/Processor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lombok/javac/apt/Processor.java b/src/lombok/javac/apt/Processor.java
index 9f3951bb..1ff1ee88 100644
--- a/src/lombok/javac/apt/Processor.java
+++ b/src/lombok/javac/apt/Processor.java
@@ -93,7 +93,8 @@ public class Processor extends AbstractProcessor {
List<JavacAST> asts = new ArrayList<JavacAST>();
- for (JCCompilationUnit unit : units.keySet()) asts.add(new JavacAST(trees, processingEnv, unit));
+ for (JCCompilationUnit unit : units.keySet()) asts.add(
+ new JavacAST(trees, processingEnv.getMessager(), processingEnv.getContext(), unit));
handlers.skipPrintAST();
for (JavacAST ast : asts) {