public final class DelegateMethodDescription extends Object
We use method descriptions to refer to abstract methods defined in com.facebook.litho.ComponentLifecycle, so that we can define implementations that delegate to client-declared methods with annotated props.
Modifier and Type | Class and Description |
---|---|
static class |
DelegateMethodDescription.Builder |
static class |
DelegateMethodDescription.OptionalParameterType
Defines possible param types that can be used in delegate methods.
|
Modifier and Type | Field and Description |
---|---|
javax.lang.model.element.Modifier |
accessType |
ImmutableList<AnnotationSpec> |
annotations |
ImmutableList<TypeName> |
definedParameterTypes |
ImmutableList<TypeName> |
exceptions |
ImmutableList<MethodSpec> |
extraMethods |
ImmutableList<Class<? extends Annotation>> |
interStageInputAnnotations |
String |
name |
ImmutableList<MethodParamModel> |
optionalParameters |
ImmutableList<DelegateMethodDescription.OptionalParameterType> |
optionalParameterTypes |
TypeName |
returnType |
Modifier and Type | Method and Description |
---|---|
static DelegateMethodDescription.Builder |
fromDelegateMethodDescription(DelegateMethodDescription methodDescription) |
static DelegateMethodDescription.Builder |
newBuilder() |
public final ImmutableList<AnnotationSpec> annotations
public final javax.lang.model.element.Modifier accessType
public final TypeName returnType
public final String name
public final ImmutableList<TypeName> definedParameterTypes
public final ImmutableList<MethodParamModel> optionalParameters
public final ImmutableList<DelegateMethodDescription.OptionalParameterType> optionalParameterTypes
public final ImmutableList<Class<? extends Annotation>> interStageInputAnnotations
public final ImmutableList<MethodSpec> extraMethods
public final ImmutableList<TypeName> exceptions
public static DelegateMethodDescription.Builder newBuilder()
public static DelegateMethodDescription.Builder fromDelegateMethodDescription(DelegateMethodDescription methodDescription)