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 Object implements DynamicType.Builder.MethodDefinition.ImplementationDefinition<V>
An abstract base implementation for a builder optionally defining an implementation of a method.
  • Constructor Details

    • AbstractBase

      public AbstractBase()
  • Method Details

    • defaultValue

      public <W> DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<V> defaultValue(W value, 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 interface DynamicType.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.