org.hibernate.validator.ap
Class ConstraintValidationProcessor

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by org.hibernate.validator.ap.ConstraintValidationProcessor
All Implemented Interfaces:
javax.annotation.processing.Processor

@SupportedAnnotationTypes(value="*")
@SupportedSourceVersion(value=RELEASE_6)
@SupportedOptions(value={"diagnosticKind","verbose"})
public class ConstraintValidationProcessor
extends javax.annotation.processing.AbstractProcessor

An annotation processor for checking Bean Validation constraints. The processor supports the following options:

Author:
Hardy Ferentschik, Gunnar Morling

Field Summary
static javax.tools.Diagnostic.Kind DEFAULT_DIAGNOSTIC_KIND
          The diagnostic kind to be used if no or an invalid kind is given as processor option.
static String DIAGNOSTIC_KIND_PROCESSOR_OPTION_NAME
          The name of the processor option for setting the diagnostic kind to be used when reporting errors during annotation processing.
static String VERBOSE_PROCESSOR_OPTION_NAME
          The name of the processor option for activating verbose message reporting.
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
ConstraintValidationProcessor()
           
 
Method Summary
 void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
           
 boolean process(Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnvironment)
           
 
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
 

Field Detail

DIAGNOSTIC_KIND_PROCESSOR_OPTION_NAME

public static final String DIAGNOSTIC_KIND_PROCESSOR_OPTION_NAME
The name of the processor option for setting the diagnostic kind to be used when reporting errors during annotation processing.

See Also:
Constant Field Values

VERBOSE_PROCESSOR_OPTION_NAME

public static final String VERBOSE_PROCESSOR_OPTION_NAME
The name of the processor option for activating verbose message reporting.

See Also:
Constant Field Values

DEFAULT_DIAGNOSTIC_KIND

public static final javax.tools.Diagnostic.Kind DEFAULT_DIAGNOSTIC_KIND
The diagnostic kind to be used if no or an invalid kind is given as processor option.

Constructor Detail

ConstraintValidationProcessor

public ConstraintValidationProcessor()
Method Detail

init

public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
Specified by:
init in interface javax.annotation.processing.Processor
Overrides:
init in class javax.annotation.processing.AbstractProcessor

process

public boolean process(Set<? extends javax.lang.model.element.TypeElement> annotations,
                       javax.annotation.processing.RoundEnvironment roundEnvironment)
Specified by:
process in interface javax.annotation.processing.Processor
Specified by:
process in class javax.annotation.processing.AbstractProcessor


Copyright © 2007-2010. All Rights Reserved.