@HashCodeAndEqualsPlugin.Enhance(includeSyntheticFields=true) protected class DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter extends DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<U>
| Modifier and Type | Class and Description |
|---|---|
protected class |
DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter
An annotation adapter for implementing annotations during a method definition.
|
DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<V>, DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>| Modifier | Constructor and Description |
|---|---|
protected |
MethodMatchAdapter(LatentMatcher<? super MethodDescription> matcher)
Creates a new method match adapter.
|
| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> |
defaultValue(AnnotationValue<?,?> annotationValue)
Defines the previously defined or matched method to return the supplied value as an annotation default value.
|
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> |
intercept(Implementation implementation)
Implements the previously defined or matched method by the supplied implementation.
|
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> |
withoutCode()
Defines the previously defined or matched method not to declare a method body.
|
defaultValueprotected MethodMatchAdapter(LatentMatcher<? super MethodDescription> matcher)
matcher - The method matcher of this adapter.public DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> intercept(Implementation implementation)
implementation - The implementation for implementing the previously defined or matched method.public DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> withoutCode()
abstract unless it was already declared to be native.public DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> defaultValue(AnnotationValue<?,?> annotationValue)
EnumerationDescription,
types as TypeDescription and annotations as AnnotationDescription. For supplying loaded types, use
DynamicType.Builder.MethodDefinition.ImplementationDefinition.defaultValue(Object, Class) must be used.annotationValue - The value to be defined as a default value.Copyright © 2014–2023. All rights reserved.