lombok.javac.apt
Class Processor
java.lang.Object
javax.annotation.processing.AbstractProcessor
lombok.javac.apt.Processor
- All Implemented Interfaces:
- Processor
@SupportedAnnotationTypes(value="*")
public class Processor
- extends AbstractProcessor
This Annotation Processor is the standard injection mechanism for lombok-enabling the javac compiler.
Due to lots of changes in the core javac code, as well as lombok's heavy usage of non-public API, this
code only works for the javac v1.6 compiler; it definitely won't work for javac v1.5, and it probably
won't work for javac v1.7 without modifications.
To actually enable lombok in a javac compilation run, this class should be in the classpath when
running javac; that's the only requirement.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Processor
public Processor()
init
public void init(ProcessingEnvironment procEnv)
-
- Specified by:
init in interface Processor- Overrides:
init in class AbstractProcessor
process
public boolean process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv)
-
- Specified by:
process in interface Processor- Specified by:
process in class AbstractProcessor
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- We just return the latest version of whatever JDK we run on. Stupid? Yeah, but it's either that or warnings on all versions but 1.
- Specified by:
getSupportedSourceVersion in interface Processor- Overrides:
getSupportedSourceVersion in class AbstractProcessor
Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.