Lombok - v0.9.3

lombok.javac.apt
Class Processor

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by lombok.javac.apt.Processor
All Implemented Interfaces:
javax.annotation.processing.Processor

@SupportedAnnotationTypes(value="*")
@SupportedSourceVersion(value=RELEASE_6)
public class Processor
extends javax.annotation.processing.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
 void init(javax.annotation.processing.ProcessingEnvironment procEnv)
          
 boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)
          
 
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, 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(javax.annotation.processing.ProcessingEnvironment procEnv)

Specified by:
init in interface javax.annotation.processing.Processor
Overrides:
init in class javax.annotation.processing.AbstractProcessor

process

public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
                       javax.annotation.processing.RoundEnvironment roundEnv)

Specified by:
process in interface javax.annotation.processing.Processor
Specified by:
process in class javax.annotation.processing.AbstractProcessor

Lombok - v0.9.3

Copyright © 2009 Reinier Zwitserloot and Roel Spilker, licensed under the MIT licence.