org.neo4j.kernel.impl.annotations
Class AnnotationProcessor

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by org.neo4j.kernel.impl.annotations.AnnotationProcessor
All Implemented Interfaces:
Processor
Direct Known Subclasses:
DocumentationProcessor, ServiceProcessor

public abstract class AnnotationProcessor
extends AbstractProcessor


Field Summary
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
AnnotationProcessor()
           
 
Method Summary
protected  boolean addAnnotation(Element target, Class<? extends Annotation> annotation)
           
protected  boolean addAnnotation(Element target, Class<? extends Annotation> annotation, Map<String,Object> parameters)
           
protected  boolean addAnnotation(Element target, Class<? extends Annotation> annotation, Object value)
           
protected  boolean addAnnotation(Element target, Class<? extends Annotation> annotation, String key, Object value)
           
protected  void error(Element element, AnnotationMirror annotation, String message)
           
protected  void error(Element element, String message)
           
 void init(ProcessingEnvironment processingEnv)
           
 boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
           
protected abstract  void process(TypeElement annotationType, Element annotated, AnnotationMirror annotation, Map<? extends ExecutableElement,? extends AnnotationValue> values)
           
protected  boolean updateAnnotationValue(Element annotated, AnnotationMirror annotation, String key, String value)
           
protected  void warn(Element element, AnnotationMirror annotation, String message)
           
protected  void warn(Element element, String message)
           
 
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

AnnotationProcessor

public AnnotationProcessor()
Method Detail

init

public void init(ProcessingEnvironment processingEnv)
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

warn

protected final void warn(Element element,
                          String message)

warn

protected final void warn(Element element,
                          AnnotationMirror annotation,
                          String message)

error

protected final void error(Element element,
                           String message)

error

protected final void error(Element element,
                           AnnotationMirror annotation,
                           String message)

updateAnnotationValue

protected final boolean updateAnnotationValue(Element annotated,
                                              AnnotationMirror annotation,
                                              String key,
                                              String value)

addAnnotation

protected final boolean addAnnotation(Element target,
                                      Class<? extends Annotation> annotation,
                                      Object value)

addAnnotation

protected final boolean addAnnotation(Element target,
                                      Class<? extends Annotation> annotation,
                                      String key,
                                      Object value)

addAnnotation

protected final boolean addAnnotation(Element target,
                                      Class<? extends Annotation> annotation)

addAnnotation

protected final boolean addAnnotation(Element target,
                                      Class<? extends Annotation> annotation,
                                      Map<String,Object> parameters)

process

protected abstract void process(TypeElement annotationType,
                                Element annotated,
                                AnnotationMirror annotation,
                                Map<? extends ExecutableElement,? extends AnnotationValue> values)
                         throws IOException
Throws:
IOException


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.