public interface SpecModelFactory<T extends SpecModel>
SpecModel
. It first performs an extract(RoundEnvironment)
step
in which it selects the elements it wants to process from the annotation processor's round
environment and then creates a SpecModel
for each extracted element in create(Elements, Types, TypeElement, Messager, EnumSet, DependencyInjectionHelper,
InterStageStore)
.Modifier and Type | Method and Description |
---|---|
T |
create(javax.lang.model.util.Elements elements,
javax.lang.model.util.Types types,
javax.lang.model.element.TypeElement element,
javax.annotation.processing.Messager messager,
EnumSet<RunMode> runMode,
DependencyInjectionHelper dependencyInjectionHelper,
InterStageStore propNameInterStageStore)
|
Set<javax.lang.model.element.Element> |
extract(javax.annotation.processing.RoundEnvironment roundEnvironment)
Extract the relevant Elements to work with from the round environment before they're passed on
to
create(Elements, Types, TypeElement, Messager, EnumSet, DependencyInjectionHelper,
InterStageStore) . |
Set<javax.lang.model.element.Element> extract(javax.annotation.processing.RoundEnvironment roundEnvironment)
create(Elements, Types, TypeElement, Messager, EnumSet, DependencyInjectionHelper,
InterStageStore)
.T create(javax.lang.model.util.Elements elements, javax.lang.model.util.Types types, javax.lang.model.element.TypeElement element, javax.annotation.processing.Messager messager, EnumSet<RunMode> runMode, DependencyInjectionHelper dependencyInjectionHelper, InterStageStore propNameInterStageStore)
SpecModel
from the given TypeElement
and an optional DependencyInjectionHelper
. The optional InterStageStore
can be used to augment name
lookups in Java 7.