diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-18 17:48:27 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-18 17:48:27 +0200 |
commit | 17c8f5a0196f5b56361241147e6bcf19eeb2d2ce (patch) | |
tree | 77bcb1d38f94569fd622c19a5f9701435f24aa36 /src/lombok/javac/apt | |
parent | 4da08ce3ccdd94f48856bd77b3dff50a77c150b1 (diff) | |
download | lombok-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')
-rw-r--r-- | src/lombok/javac/apt/Processor.java | 3 |
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) { |