X - A loaded type that the built type is guaranteed to be a subclass of.protected abstract static class DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter<X> extends DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase<X>
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter<X>DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase<W>DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<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.ExceptionDefinition<X> | throwing(Collection<? extends TypeDefinition> types)Defines a method variable to be declared by the currently defined method. | 
| 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. | 
| DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<X> | withParameter(TypeDefinition type,
             String name,
             int modifiers)Defines the specified parameter for the currently defined method as the last parameter of the currently defined method. | 
annotateParameter, annotateParameter, annotateParameterwithParameter, withParameter, withParameter, withParameter, withParameterthrowing, throwing, throwingtypeVariable, typeVariable, typeVariable, typeVariableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitannotateParameterwithParameter, withParameter, withParameter, withParameter, withParameterthrowing, throwing, throwingtypeVariable, typeVariable, typeVariable, typeVariablepublic DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<X> withParameter(TypeDefinition type, String name, int modifiers)
type - The parameter's type. Can also be TargetType if the parameter type
                  should be equal to the currently instrumented type.name - The parameter's name.modifiers - The parameter's modifiers.public DynamicType.Builder.MethodDefinition.ExceptionDefinition<X> throwing(Collection<? extends TypeDefinition> types)
types - The type of the exception being declared by the currently defined method.public 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.