Package de.floydkretschmar.fixturize
Class FixtureProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
de.floydkretschmar.fixturize.FixtureProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("de.floydkretschmar.fixturize.annotations.Fixture")
@SupportedSourceVersion(RELEASE_21)
@AutoService(javax.annotation.processing.Processor.class)
public class FixtureProcessor
extends AbstractProcessor
Processes all classes annotated with
public class classNameFixture {
constant1
...
constantM
creationMethod1
...
creationMethod2
}
For the exact format of each constant and creationMethod please reference
Fixture and tries to generate
a corresponding fixture class for all of these classes. A fixture class generally has the following format:
public class classNameFixture {
constant1
...
constantM
creationMethod1
...
creationMethod2
}
For the exact format of each constant and creationMethod please reference
ConstantGenerationStrategy
and CreationMethodGenerationStrategy respectively.-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(ProcessingEnvironment processingEnv) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
Constructor Details
-
FixtureProcessor
public FixtureProcessor()
-
-
Method Details
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-