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