Lombok - v0.10.8

lombok.javac.apt
Class Processor

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by 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.


Constructor Summary
Processor()
           
 
Method Summary
 SourceVersion getSupportedSourceVersion()
          We just return the latest version of whatever JDK we run on.
 void init(ProcessingEnvironment procEnv)
          
 boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
          
 
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Processor

public Processor()
Method Detail

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

Lombok - v0.10.8

Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.