Package net.bytebuddy.dynamic
Class DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<V>
- java.lang.Object
-
- net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<V>
-
- Type Parameters:
V
- A loaded type that the built type is guaranteed to be a subclass of.
- All Implemented Interfaces:
DynamicType.Builder.MethodDefinition.ImplementationDefinition<V>
- Direct Known Subclasses:
DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter
,DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase
- Enclosing interface:
- DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>
public abstract static class DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<V> extends java.lang.Object implements DynamicType.Builder.MethodDefinition.ImplementationDefinition<V>
An abstract base implementation for a builder optionally defining an implementation of a method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ImplementationDefinition
DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<V>, DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <W> DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<V>
defaultValue(W value, java.lang.Class<? extends W> type)
Defines the previously defined or matched method to return the supplied value as an annotation default value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ImplementationDefinition
defaultValue, intercept, withoutCode
-
-
-
-
Method Detail
-
defaultValue
public <W> DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<V> defaultValue(W value, java.lang.Class<? extends W> type)
Defines the previously defined or matched method to return the supplied value as an annotation default value. The value must be supplied in its loaded state paired with the property type of the value.- Specified by:
defaultValue
in interfaceDynamicType.Builder.MethodDefinition.ImplementationDefinition<V>
- Type Parameters:
W
- The type of the annotation property.- Parameters:
value
- The value to be defined as a default value.type
- The type of the annotation property.- Returns:
- A builder where the previously defined or matched method is implemented to return an annotation default value.
-
-