de.holisticon.annotationprocessortoolkit.testhelper.unittest
Class AbstractUnitTestAnnotationProcessorClass

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by de.holisticon.annotationprocessortoolkit.AbstractAnnotationProcessor
          extended by de.holisticon.annotationprocessortoolkit.testhelper.unittest.AbstractUnitTestAnnotationProcessorClass
All Implemented Interfaces:
Processor

public abstract class AbstractUnitTestAnnotationProcessorClass
extends AbstractAnnotationProcessor

Base annotation processor for unit tests.


Nested Class Summary
 
Nested classes/interfaces inherited from class de.holisticon.annotationprocessortoolkit.AbstractAnnotationProcessor
AbstractAnnotationProcessor.FileObjectWrapper
 
Field Summary
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
AbstractUnitTestAnnotationProcessorClass()
           
 
Method Summary
 Set<String> getSupportedAnnotationTypes()
           
 boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
           
protected abstract  void testCase(TypeElement element)
           
protected  void triggerError(String message)
           
 
Methods inherited from class de.holisticon.annotationprocessortoolkit.AbstractAnnotationProcessor
createFluentElementFilter, createSupportedAnnotationSet, getElementUtils, getFiler, getFluentMethodValidator, getFluentModifierElementValidator, getFluentTypeValidator, getFrameworkToolWrapper, getMessager, getSupportedSourceVersion, getTypeUtils, init
 
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUnitTestAnnotationProcessorClass

public AbstractUnitTestAnnotationProcessorClass()
Method Detail

getSupportedAnnotationTypes

public Set<String> getSupportedAnnotationTypes()
Specified by:
getSupportedAnnotationTypes in interface Processor
Overrides:
getSupportedAnnotationTypes in class AbstractProcessor

testCase

protected abstract void testCase(TypeElement element)

process

public boolean process(Set<? extends TypeElement> annotations,
                       RoundEnvironment roundEnv)
Specified by:
process in interface Processor
Specified by:
process in class AbstractProcessor

triggerError

protected void triggerError(String message)


Copyright © 2017 Holisticon AG. All Rights Reserved.