| Modifier and Type | Class and Description |
|---|---|
static class |
SpecModelImpl.Builder |
public String getSpecName()
getSpecName in interface SpecModelpublic ClassName getSpecTypeName()
getSpecTypeName in interface SpecModelTypeName representing the name of the Spec.public String getComponentName()
getComponentName in interface SpecModelpublic TypeName getComponentTypeName()
getComponentTypeName in interface SpecModelTypeName representing the name of the component that will be generated from
this model.public ImmutableList<FieldModel> getFields()
public ImmutableList<SpecMethodModel<DelegateMethod,Void>> getDelegateMethods()
getDelegateMethods in interface SpecModelpublic ImmutableList<SpecMethodModel<EventMethod,EventDeclarationModel>> getEventMethods()
getEventMethods in interface SpecModelpublic ImmutableList<SpecMethodModel<EventMethod,EventDeclarationModel>> getTriggerMethods()
getTriggerMethods in interface SpecModelpublic SpecMethodModel<EventMethod,Void> getWorkingRangeRegisterMethod()
getWorkingRangeRegisterMethod in interface SpecModelpublic ImmutableList<WorkingRangeMethodModel> getWorkingRangeMethods()
getWorkingRangeMethods in interface SpecModelpublic ImmutableList<SpecMethodModel<UpdateStateMethod,Void>> getUpdateStateMethods()
getUpdateStateMethods in interface SpecModelpublic ImmutableList<SpecMethodModel<UpdateStateMethod,Void>> getUpdateStateWithTransitionMethods()
getUpdateStateWithTransitionMethods in interface SpecModelpublic ImmutableList<PropModel> getRawProps()
getRawProps in interface SpecModelpublic ImmutableList<PropModel> getProps()
public ImmutableList<InjectPropModel> getRawInjectProps()
getRawInjectProps in interface SpecModelpublic ImmutableList<InjectPropModel> getInjectProps()
getInjectProps in interface SpecModelpublic ImmutableList<PropDefaultModel> getPropDefaults()
getPropDefaults in interface SpecModelpublic ImmutableList<TypeVariableName> getTypeVariables()
getTypeVariables in interface SpecModelpublic ImmutableList<StateParamModel> getStateValues()
getStateValues in interface SpecModelpublic ImmutableList<CachedValueParamModel> getCachedValues()
getCachedValues in interface SpecModelpublic ImmutableList<InterStageInputParamModel> getInterStageInputs()
getInterStageInputs in interface SpecModelpublic ImmutableList<TreePropModel> getTreeProps()
getTreeProps in interface SpecModelpublic ImmutableList<EventDeclarationModel> getEventDeclarations()
getEventDeclarations in interface SpecModelpublic ImmutableList<BuilderMethodModel> getExtraBuilderMethods()
getExtraBuilderMethods in interface SpecModelpublic ImmutableList<RenderDataDiffModel> getRenderDataDiffs()
getRenderDataDiffs in interface SpecModelpublic ImmutableList<AnnotationSpec> getClassAnnotations()
getClassAnnotations in interface SpecModelpublic ImmutableList<TagModel> getTags()
public String getClassJavadoc()
getClassJavadoc in interface SpecModelpublic ImmutableList<PropJavadocModel> getPropJavadocs()
getPropJavadocs in interface SpecModelpublic boolean isPublic()
public ClassName getContextClass()
getContextClass in interface SpecModelClassName of the context that is used in the generated class.public ClassName getComponentClass()
getComponentClass in interface SpecModelClassName of the component that is used in the generated class.public ClassName getTransitionClass()
getTransitionClass in interface SpecModelClassName of the transition that is used in the generated class.public ClassName getTransitionContainerClass()
getTransitionContainerClass in interface SpecModelClassName of the transition container class that is used in the generated
class.public ClassName getStateContainerClass()
getStateContainerClass in interface SpecModelClassName of the state container class that is used in the generated class.public String getScopeMethodName()
getScopeMethodName in interface SpecModelpublic boolean isStylingSupported()
isStylingSupported in interface SpecModelpublic boolean hasInjectedDependencies()
hasInjectedDependencies in interface SpecModelpublic boolean shouldCheckIdInIsEquivalentToMethod()
shouldCheckIdInIsEquivalentToMethod in interface SpecModelpublic boolean hasDeepCopy()
hasDeepCopy in interface SpecModelpublic boolean shouldGenerateHasState()
shouldGenerateHasState in interface SpecModelpublic DependencyInjectionHelper getDependencyInjectionHelper()
getDependencyInjectionHelper in interface SpecModelpublic SpecElementType getSpecElementType()
getSpecElementType in interface SpecModelpublic Object getRepresentedObject()
getRepresentedObject in interface SpecModelpublic List<SpecModelValidationError> validate(EnumSet<RunMode> runMode)
public boolean shouldGenerateCopyMethod()
shouldGenerateCopyMethod in interface SpecModelpublic boolean shouldGenerateIsEquivalentTo()
shouldGenerateIsEquivalentTo in interface SpecModelpublic ImmutableList<SpecMethodModel<BindDynamicValueMethod,Void>> getBindDynamicValueMethods()
OnBindDynamicValue methods. This method
is a not included into com.facebook.litho.annotations.MountSpec interface, since only
com.facebook.litho.annotations.MountSpecs may declare such methods for now. This method
is present here, because SpecModelImpl needs to be aware of these methods to extract
Props from them.public static SpecModelImpl.Builder newBuilder()