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 Classes Modifier and Type Interface Description static class
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase<W>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V>
annotateTypeVariable(java.lang.annotation.Annotation... annotation)
Annotates the previously defined type variable with the supplied annotations.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V>
annotateTypeVariable(java.util.Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined type variable with the supplied annotations.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.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V>
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 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.
-
-