X
- A loaded type that the built type is guaranteed to be a subclass of.protected abstract static class DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter<X> extends DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase<X>
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter<X>
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase<W>
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.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.Simple<X> |
materialize()
Materializes this instance as a simple 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.Simple.Annotatable<X> |
withParameter(TypeDefinition type)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
|
annotateParameter, annotateParameter, annotateParameter
withParameter
throwing, throwing, throwing
typeVariable, typeVariable, typeVariable, typeVariable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
annotateParameter
withParameter
throwing, throwing, throwing
typeVariable, typeVariable, typeVariable, typeVariable
public DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<X> withParameter(TypeDefinition type)
type
- The parameter's type. Can also be TargetType
if the parameter type
should be equal to the currently instrumented type.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.Simple<X> materialize()
Copyright © 2014–2025. All rights reserved.