Package org.immutables.generator
Class AbstractGenerator
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.immutables.generator.AbstractGenerator
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
DoitProcessor,Processor,Processor,Processor
Extend this abstract processor to properly initalize and call templates.
- See Also:
-
Field Summary
FieldsFields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Set<TypeElement> voidinit(ProcessingEnvironment processingEnv) protected final voidinvoke(Templates.Invokable invokable) protected abstract voidprocess()Override process method and callinvoke(org.immutables.generator.Templates.Invokable)from inside it passing invokable fragments from generated template instances.final booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment round) protected final ProcessingEnvironmentprotected final RoundEnvironmentround()Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, isInitialized
-
Field Details
-
env
-
-
Constructor Details
-
AbstractGenerator
public AbstractGenerator()
-
-
Method Details
-
process
protected abstract void process()Override process method and callinvoke(org.immutables.generator.Templates.Invokable)from inside it passing invokable fragments from generated template instances. -
processing
-
round
-
annotations
-
invoke
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
getSupportedAnnotationTypes
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor- Overrides:
getSupportedAnnotationTypesin classAbstractProcessor
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-