U - A loaded type that the built type is guaranteed to be a subclass of.public static interface DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>
| Modifier and Type | Interface and Description | 
|---|---|
| static class  | DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<V>An abstract base implementation for a builder optionally defining an implementation of a method. | 
| static interface  | DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>A builder for optionally defining an implementation of a method. | 
| 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. | 
| <W> DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> | defaultValue(W value,
            Class<? extends W> type)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. | 
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> intercept(Implementation implementation)
implementation - The implementation for implementing the previously defined or matched method.DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> withoutCode()
abstract unless it was already declared to be native.DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> defaultValue(AnnotationValue<?,?> annotationValue)
EnumerationDescription,
 types as TypeDescription and annotations as AnnotationDescription. For supplying loaded types, use
 defaultValue(Object, Class) must be used.annotationValue - The value to be defined as a default value.<W> DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> defaultValue(W value, Class<? extends W> type)
W - The type of the annotation property.value - The value to be defined as a default value.type - The type of the annotation property.Copyright © 2014–2023. All rights reserved.