Package net.bytebuddy.dynamic
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
An abstract base implementation for defining an annotation on a parameter.Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ImplementationDefinition
DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.TypeVariableDefinition
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V>
-
Method Summary
Modifier and TypeMethodDescriptionannotateTypeVariable
(Annotation... annotation) Annotates the previously defined type variable with the supplied annotations.annotateTypeVariable
(Collection<? extends AnnotationDescription> annotations) Annotates the previously defined type variable with the supplied annotations.annotateTypeVariable
(List<? extends Annotation> annotations) Annotates the previously defined type variable with the supplied annotations.annotateTypeVariable
(AnnotationDescription... annotation) Annotates the previously defined type variable with the supplied annotations.Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ImplementationDefinition
defaultValue, defaultValue, intercept, withoutCode
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.TypeVariableDefinition
typeVariable, typeVariable, typeVariable, typeVariable, typeVariable
-
Method Details
-
annotateTypeVariable
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V> 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.MethodDefinition.TypeVariableDefinition.Annotatable<V> 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
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(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.
-