public class LayoutSpecModelFactory extends java.lang.Object implements SpecModelFactory<LayoutSpecModel>
LayoutSpecModel
s.Modifier and Type | Field and Description |
---|---|
static ImmutableList<java.lang.Class<? extends java.lang.annotation.Annotation>> |
DELEGATE_METHOD_ANNOTATIONS |
Constructor and Description |
---|
LayoutSpecModelFactory() |
LayoutSpecModelFactory(java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> layoutSpecDelegateMethodAnnotations,
SpecGenerator<LayoutSpecModel> layoutSpecGenerator) |
Modifier and Type | Method and Description |
---|---|
LayoutSpecModel |
create(javax.lang.model.util.Elements elements,
javax.lang.model.util.Types types,
javax.lang.model.element.TypeElement element,
javax.annotation.processing.Messager messager,
java.util.EnumSet<RunMode> runMode,
DependencyInjectionHelper dependencyInjectionHelper,
InterStageStore interStageStore)
|
java.util.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
SpecModelFactory.create(Elements, Types, TypeElement, Messager, EnumSet, DependencyInjectionHelper,
InterStageStore) . |
public static final ImmutableList<java.lang.Class<? extends java.lang.annotation.Annotation>> DELEGATE_METHOD_ANNOTATIONS
public LayoutSpecModelFactory()
public LayoutSpecModelFactory(java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> layoutSpecDelegateMethodAnnotations, SpecGenerator<LayoutSpecModel> layoutSpecGenerator)
public java.util.Set<javax.lang.model.element.Element> extract(javax.annotation.processing.RoundEnvironment roundEnvironment)
SpecModelFactory
SpecModelFactory.create(Elements, Types, TypeElement, Messager, EnumSet, DependencyInjectionHelper,
InterStageStore)
.extract
in interface SpecModelFactory<LayoutSpecModel>
public LayoutSpecModel create(javax.lang.model.util.Elements elements, javax.lang.model.util.Types types, javax.lang.model.element.TypeElement element, javax.annotation.processing.Messager messager, java.util.EnumSet<RunMode> runMode, DependencyInjectionHelper dependencyInjectionHelper, InterStageStore interStageStore)
create
in interface SpecModelFactory<LayoutSpecModel>