X - A loaded type that the built type is guaranteed to be a subclass of.protected abstract static class DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter<X> extends DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase<X>
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter<X>DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase<W>DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V>DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>| Modifier | Constructor and Description |
|---|---|
protected |
Adapter() |
| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> |
defaultValue(AnnotationValue<?,?> annotationValue)
Defines the previously defined or matched method to return the supplied value as an annotation default value.
|
<V> DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> |
defaultValue(V value,
Class<? extends V> type)
Defines the previously defined or matched method to return the supplied value as an annotation default value.
|
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> |
intercept(Implementation implementation)
Implements the previously defined or matched method by the supplied implementation.
|
protected abstract DynamicType.Builder.MethodDefinition.ParameterDefinition<X> |
materialize()
Materializes this instance as a parameter definition with the currently defined properties.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<X> |
typeVariable(String symbol,
Collection<? extends TypeDefinition> bounds)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> |
withoutCode()
Defines the previously defined or matched method not to declare a method body.
|
annotateTypeVariable, annotateTypeVariable, annotateTypeVariabletypeVariable, typeVariable, typeVariable, typeVariableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitannotateTypeVariabletypeVariable, typeVariable, typeVariable, typeVariablepublic DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<X> typeVariable(String symbol, Collection<? extends TypeDefinition> bounds)
symbol - The symbol of the type variable.bounds - The bounds of the type variables. Can also be TargetType for any type
if a bound type should be equal to the currently instrumented type.public DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> intercept(Implementation implementation)
implementation - The implementation for implementing the previously defined or matched method.public DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> withoutCode()
abstract unless it was already declared to be native.public DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> 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.public <V> DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> defaultValue(V value, Class<? extends V> type)
defaultValue in interface DynamicType.Builder.MethodDefinition.ImplementationDefinition<X>defaultValue in class DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<X>V - The type of the annotation property.value - The value to be defined as a default value.type - The type of the annotation property.protected abstract DynamicType.Builder.MethodDefinition.ParameterDefinition<X> materialize()
Copyright © 2014–2023. All rights reserved.