public interface SpecModel
java.lang.String getSpecName()
ClassName getSpecTypeName()
TypeName
representing the name of the Spec.java.lang.String getComponentName()
TypeName getComponentTypeName()
TypeName
representing the name of the component that will be generated from
this model.ImmutableList<FieldModel> getFields()
ImmutableList<SpecMethodModel<DelegateMethod,java.lang.Void>> getDelegateMethods()
ImmutableList<SpecMethodModel<EventMethod,EventDeclarationModel>> getEventMethods()
ImmutableList<SpecMethodModel<EventMethod,EventDeclarationModel>> getTriggerMethods()
SpecMethodModel<EventMethod,java.lang.Void> getWorkingRangeRegisterMethod()
ImmutableList<WorkingRangeMethodModel> getWorkingRangeMethods()
ImmutableList<SpecMethodModel<UpdateStateMethod,java.lang.Void>> getUpdateStateMethods()
ImmutableList<SpecMethodModel<UpdateStateMethod,java.lang.Void>> getUpdateStateWithTransitionMethods()
ImmutableList<PropModel> getRawProps()
ImmutableList<PropModel> getProps()
ImmutableList<InjectPropModel> getRawInjectProps()
ImmutableList<InjectPropModel> getInjectProps()
ImmutableList<PropDefaultModel> getPropDefaults()
ImmutableList<TypeVariableName> getTypeVariables()
ImmutableList<StateParamModel> getStateValues()
ImmutableList<CachedValueParamModel> getCachedValues()
ImmutableList<InterStageInputParamModel> getInterStageInputs()
ImmutableList<PrepareInterStageInputParamModel> getPrepareInterStageInputs()
ImmutableList<TreePropModel> getTreeProps()
ImmutableList<EventDeclarationModel> getEventDeclarations()
ImmutableList<BuilderMethodModel> getExtraBuilderMethods()
ImmutableList<RenderDataDiffModel> getRenderDataDiffs()
ImmutableList<AnnotationSpec> getClassAnnotations()
ImmutableList<TagModel> getTags()
java.lang.String getClassJavadoc()
ImmutableList<PropJavadocModel> getPropJavadocs()
boolean isPublic()
ClassName getContextClass()
ClassName
of the context that is used in the generated class.ClassName getComponentClass()
ClassName
of the component that is used in the generated class.ClassName getStateContainerClass()
ClassName
of the state container class that is used in the generated class.ClassName getTransitionClass()
ClassName
of the transition that is used in the generated class.ClassName getTransitionContainerClass()
ClassName
of the transition container class that is used in the generated
class.java.lang.String getScopeMethodName()
boolean isStylingSupported()
boolean hasInjectedDependencies()
boolean shouldCheckIdInIsEquivalentToMethod()
boolean hasDeepCopy()
boolean shouldGenerateHasState()
boolean isStateful()
DependencyInjectionHelper getDependencyInjectionHelper()
SpecElementType getSpecElementType()
java.lang.Object getRepresentedObject()
java.util.List<SpecModelValidationError> validate(java.util.EnumSet<RunMode> runMode)
runMode
- TypeSpec generate(java.util.EnumSet<RunMode> runMode)
TypeSpec
representing the class that is generated by this model.boolean shouldGenerateCopyMethod()
boolean shouldGenerateIsEquivalentTo()