Package net.bytebuddy.dynamic
Interface DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U>
-
- Type Parameters:
U
- A loaded type that the built type is guaranteed to be a subclass of.
- All Superinterfaces:
DynamicType.Builder<U>
,DynamicType.Builder.MethodDefinition<U>
- All Known Implementing Classes:
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.AnnotationAdapter
,DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter
,DynamicType.Builder.MethodDefinition.AbstractBase.Adapter
,DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition.AbstractBase
- Enclosing interface:
- DynamicType.Builder.MethodDefinition<S>
public static interface DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> extends DynamicType.Builder.MethodDefinition<U>
A builder for a method definition with a receiver type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition.AbstractBase<V>
An abstract base implementation of a method definition that can accept a receiver type.-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder
DynamicType.Builder.FieldDefinition<S>, DynamicType.Builder.InnerTypeDefinition<S>, DynamicType.Builder.MethodDefinition<S>, DynamicType.Builder.RecordComponentDefinition<S>
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition
DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>, DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>, DynamicType.Builder.MethodDefinition.ParameterDefinition<U>, DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U>, DynamicType.Builder.MethodDefinition.TypeVariableDefinition<U>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DynamicType.Builder.MethodDefinition<U>
receiverType(java.lang.reflect.AnnotatedElement receiverType)
Defines the supplied (annotated) receiver type for the previously defined or matched method.DynamicType.Builder.MethodDefinition<U>
receiverType(TypeDescription.Generic receiverType)
Defines the supplied (annotated) receiver type for the previously defined or matched method.-
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder
annotateType, annotateType, annotateType, annotateType, attribute, constructor, declaredTypes, declaredTypes, declaredTypes, declaredTypes, define, define, define, define, define, define, defineConstructor, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineProperty, defineProperty, defineProperty, defineProperty, defineRecordComponent, defineRecordComponent, field, field, ignoreAlso, ignoreAlso, implement, implement, implement, implement, initializer, initializer, innerTypeOf, innerTypeOf, innerTypeOf, innerTypeOf, innerTypeOf, invokable, invokable, make, make, make, make, merge, merge, method, modifiers, modifiers, modifiers, name, nestHost, nestHost, nestMembers, nestMembers, nestMembers, nestMembers, noNestMate, permittedSubclass, permittedSubclass, permittedSubclass, permittedSubclass, recordComponent, recordComponent, require, require, require, require, serialVersionUid, suffix, topLevelType, toTypeDescription, transform, typeVariable, typeVariable, typeVariable, typeVariable, typeVariable, unsealed, visit, withHashCodeEquals, withToString
-
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition
annotateMethod, annotateMethod, annotateMethod, annotateMethod, annotateParameter, annotateParameter, annotateParameter, annotateParameter, attribute, transform
-
-
-
-
Method Detail
-
receiverType
DynamicType.Builder.MethodDefinition<U> receiverType(java.lang.reflect.AnnotatedElement receiverType)
Defines the supplied (annotated) receiver type for the previously defined or matched method.- Parameters:
receiverType
- The receiver type to define on the previously defined or matched method.- Returns:
- A new builder that is equal to this builder but with the given type defined as the receiver on the previously defined or matched method.
-
receiverType
DynamicType.Builder.MethodDefinition<U> receiverType(TypeDescription.Generic receiverType)
Defines the supplied (annotated) receiver type for the previously defined or matched method.- Parameters:
receiverType
- The receiver type to define on the previously defined or matched method.- Returns:
- A new builder that is equal to this builder but with the given type defined as the receiver on the previously defined or matched method.
-
-