Interface DynamicType.Builder.TypeVariableDefinition<S>

Type Parameters:
S - A loaded type that the built type is guaranteed to be a subclass of.
All Superinterfaces:
DynamicType.Builder<S>
All Known Implementing Classes:
DynamicType.Builder.AbstractBase.Adapter.TypeVariableDefinitionAdapter, DynamicType.Builder.TypeVariableDefinition.AbstractBase
Enclosing interface:
DynamicType.Builder<T>

public static interface DynamicType.Builder.TypeVariableDefinition<S> extends DynamicType.Builder<S>
A builder for a type variable definition.
  • Method Details

    • annotateTypeVariable

      DynamicType.Builder.TypeVariableDefinition<S> annotateTypeVariable(Annotation... annotation)
      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

      DynamicType.Builder.TypeVariableDefinition<S> annotateTypeVariable(List<? extends Annotation> annotations)
      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

      DynamicType.Builder.TypeVariableDefinition<S> annotateTypeVariable(Collection<? extends AnnotationDescription> annotations)
      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.