public class DiffSectionSpecModel extends java.lang.Object implements SpecModel, HasService
com.facebook.litho.sections.annotations.DiffSectionSpec
.Constructor and Description |
---|
DiffSectionSpecModel(java.lang.String qualifiedSpecClassName,
java.lang.String componentClassName,
ImmutableList<SpecMethodModel<DelegateMethod,java.lang.Void>> delegateMethods,
ImmutableList<SpecMethodModel<EventMethod,EventDeclarationModel>> eventMethods,
ImmutableList<AnnotationSpec> classAnnotations,
ImmutableList<SpecMethodModel<EventMethod,EventDeclarationModel>> triggerMethods,
ImmutableList<SpecMethodModel<UpdateStateMethod,java.lang.Void>> updateStateMethods,
ImmutableList<TypeVariableName> typeVariables,
ImmutableList<PropDefaultModel> propDefaults,
ImmutableList<EventDeclarationModel> eventDeclarations,
ImmutableList<BuilderMethodModel> builderMethodModels,
ImmutableList<TagModel> tags,
java.lang.String classJavadoc,
ImmutableList<PropJavadocModel> propJavadocs,
boolean isPublic,
SpecElementType specElementType,
DependencyInjectionHelper dependencyInjectionHelper,
java.lang.Object representedObject,
SpecGenerator<DiffSectionSpecModel> specGenerator,
ImmutableList<FieldModel> fields) |
public DiffSectionSpecModel(java.lang.String qualifiedSpecClassName, java.lang.String componentClassName, ImmutableList<SpecMethodModel<DelegateMethod,java.lang.Void>> delegateMethods, ImmutableList<SpecMethodModel<EventMethod,EventDeclarationModel>> eventMethods, ImmutableList<AnnotationSpec> classAnnotations, ImmutableList<SpecMethodModel<EventMethod,EventDeclarationModel>> triggerMethods, ImmutableList<SpecMethodModel<UpdateStateMethod,java.lang.Void>> updateStateMethods, ImmutableList<TypeVariableName> typeVariables, ImmutableList<PropDefaultModel> propDefaults, ImmutableList<EventDeclarationModel> eventDeclarations, ImmutableList<BuilderMethodModel> builderMethodModels, ImmutableList<TagModel> tags, java.lang.String classJavadoc, ImmutableList<PropJavadocModel> propJavadocs, boolean isPublic, SpecElementType specElementType, DependencyInjectionHelper dependencyInjectionHelper, java.lang.Object representedObject, SpecGenerator<DiffSectionSpecModel> specGenerator, ImmutableList<FieldModel> fields)
public java.lang.String getSpecName()
getSpecName
in interface SpecModel
public ClassName getSpecTypeName()
getSpecTypeName
in interface SpecModel
TypeName
representing the name of the Spec.public java.lang.String getComponentName()
getComponentName
in interface SpecModel
public TypeName getComponentTypeName()
getComponentTypeName
in interface SpecModel
TypeName
representing the name of the component that will be generated from
this model.public ImmutableList<FieldModel> getFields()
public ImmutableList<SpecMethodModel<DelegateMethod,java.lang.Void>> getDelegateMethods()
getDelegateMethods
in interface SpecModel
public ImmutableList<SpecMethodModel<EventMethod,EventDeclarationModel>> getEventMethods()
getEventMethods
in interface SpecModel
public ImmutableList<SpecMethodModel<EventMethod,EventDeclarationModel>> getTriggerMethods()
getTriggerMethods
in interface SpecModel
public SpecMethodModel<EventMethod,java.lang.Void> getWorkingRangeRegisterMethod()
getWorkingRangeRegisterMethod
in interface SpecModel
public ImmutableList<WorkingRangeMethodModel> getWorkingRangeMethods()
getWorkingRangeMethods
in interface SpecModel
public ImmutableList<SpecMethodModel<UpdateStateMethod,java.lang.Void>> getUpdateStateMethods()
getUpdateStateMethods
in interface SpecModel
public ImmutableList<SpecMethodModel<UpdateStateMethod,java.lang.Void>> getUpdateStateWithTransitionMethods()
getUpdateStateWithTransitionMethods
in interface SpecModel
public ImmutableList<PropModel> getRawProps()
getRawProps
in interface SpecModel
public ImmutableList<PropModel> getProps()
public ImmutableList<InjectPropModel> getRawInjectProps()
getRawInjectProps
in interface SpecModel
public ImmutableList<InjectPropModel> getInjectProps()
getInjectProps
in interface SpecModel
public ImmutableList<PropDefaultModel> getPropDefaults()
getPropDefaults
in interface SpecModel
public ImmutableList<TypeVariableName> getTypeVariables()
getTypeVariables
in interface SpecModel
public ImmutableList<StateParamModel> getStateValues()
getStateValues
in interface SpecModel
public ImmutableList<CachedValueParamModel> getCachedValues()
getCachedValues
in interface SpecModel
public ImmutableList<InterStageInputParamModel> getInterStageInputs()
getInterStageInputs
in interface SpecModel
public ImmutableList<PrepareInterStageInputParamModel> getPrepareInterStageInputs()
getPrepareInterStageInputs
in interface SpecModel
public ImmutableList<TreePropModel> getTreeProps()
getTreeProps
in interface SpecModel
public ImmutableList<EventDeclarationModel> getEventDeclarations()
getEventDeclarations
in interface SpecModel
public ImmutableList<BuilderMethodModel> getExtraBuilderMethods()
getExtraBuilderMethods
in interface SpecModel
public ImmutableList<RenderDataDiffModel> getRenderDataDiffs()
getRenderDataDiffs
in interface SpecModel
public ImmutableList<AnnotationSpec> getClassAnnotations()
getClassAnnotations
in interface SpecModel
public ImmutableList<TagModel> getTags()
public java.lang.String getClassJavadoc()
getClassJavadoc
in interface SpecModel
public ImmutableList<PropJavadocModel> getPropJavadocs()
getPropJavadocs
in interface SpecModel
public boolean isPublic()
public ClassName getContextClass()
getContextClass
in interface SpecModel
ClassName
of the context that is used in the generated class.public ClassName getComponentClass()
getComponentClass
in interface SpecModel
ClassName
of the component that is used in the generated class.public ClassName getStateContainerClass()
getStateContainerClass
in interface SpecModel
ClassName
of the state container class that is used in the generated class.public ClassName getTransitionClass()
getTransitionClass
in interface SpecModel
ClassName
of the transition that is used in the generated class.public ClassName getTransitionContainerClass()
getTransitionContainerClass
in interface SpecModel
ClassName
of the transition container class that is used in the generated
class.public java.lang.String getScopeMethodName()
getScopeMethodName
in interface SpecModel
public boolean isStylingSupported()
isStylingSupported
in interface SpecModel
public boolean hasInjectedDependencies()
hasInjectedDependencies
in interface SpecModel
public boolean shouldCheckIdInIsEquivalentToMethod()
shouldCheckIdInIsEquivalentToMethod
in interface SpecModel
public boolean hasDeepCopy()
hasDeepCopy
in interface SpecModel
public boolean shouldGenerateHasState()
shouldGenerateHasState
in interface SpecModel
public boolean shouldGenerateCopyMethod()
shouldGenerateCopyMethod
in interface SpecModel
public boolean isStateful()
isStateful
in interface SpecModel
public DependencyInjectionHelper getDependencyInjectionHelper()
getDependencyInjectionHelper
in interface SpecModel
public SpecElementType getSpecElementType()
getSpecElementType
in interface SpecModel
public java.lang.Object getRepresentedObject()
getRepresentedObject
in interface SpecModel
public java.util.List<SpecModelValidationError> validate(java.util.EnumSet<RunMode> runMode)
public TypeSpec generate(java.util.EnumSet<RunMode> runMode)
public MethodParamModel getServiceParam()
getServiceParam
in interface HasService
public boolean shouldGenerateIsEquivalentTo()
shouldGenerateIsEquivalentTo
in interface SpecModel
public java.lang.String toString()
toString
in class java.lang.Object