Interface DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V>

Type Parameters:
V - A loaded type that the built type is guaranteed to be a subclass of.
All Superinterfaces:
DynamicType.Builder.MethodDefinition.ImplementationDefinition<V>, DynamicType.Builder.MethodDefinition.TypeVariableDefinition<V>
All Known Implementing Classes:
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.TypeVariableAnnotationAdapter, DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase, DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter
Enclosing interface:
DynamicType.Builder.MethodDefinition.TypeVariableDefinition<U>

public static interface DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V> extends DynamicType.Builder.MethodDefinition.TypeVariableDefinition<V>
A builder for optionally defining an annotation for a type variable.
  • Method Details

    • annotateTypeVariable

      Annotates the previously defined type variable with the supplied annotations.
      Parameters:
      annotation - The annotations to declare on the previously defined type variable.
      Returns:
      A new builder that is equal to this builder but with the given annotations declared on the previously defined type variable.
    • annotateTypeVariable

      Annotates the previously defined type variable with the supplied annotations.
      Parameters:
      annotations - The annotations to declare on the previously defined type variable.
      Returns:
      A new builder that is equal to this builder but with the given annotations declared on the previously defined type variable.
    • annotateTypeVariable

      Annotates the previously defined type variable with the supplied annotations.
      Parameters:
      annotation - The annotations to declare on the previously defined type variable.
      Returns:
      A new builder that is equal to this builder but with the given annotations declared on the previously defined type variable.
    • annotateTypeVariable

      Annotates the previously defined type variable with the supplied annotations.
      Parameters:
      annotations - The annotations to declare on the previously defined type variable.
      Returns:
      A new builder that is equal to this builder but with the given annotations declared on the previously defined type variable.