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

    • Method Detail

      • annotateTypeVariable

        DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V> annotateTypeVariable​(java.lang.annotation.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.MethodDefinition.TypeVariableDefinition.Annotatable<V> annotateTypeVariable​(java.util.List<? extends java.lang.annotation.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

        DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V> annotateTypeVariable​(AnnotationDescription... 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.MethodDefinition.TypeVariableDefinition.Annotatable<V> annotateTypeVariable​(java.util.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.