Class DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.TypeVariableAnnotationAdapter
java.lang.Object
net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<U>
net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase<U>
net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase<U>
net.bytebuddy.dynamic.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter<U>
net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.TypeVariableAnnotationAdapter
- All Implemented Interfaces:
DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>, DynamicType.Builder.MethodDefinition.TypeVariableDefinition<U>, DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U>
- Enclosing class:
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter
@Enhance(includeSyntheticFields=true)
protected class DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.TypeVariableAnnotationAdapter
extends DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter<U>
An adapter for defining a new type variable for the currently defined method.
-
Nested Class Summary
Nested classes/interfaces inherited from class DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter<X>Nested classes/interfaces inherited from interface DynamicType.Builder.MethodDefinition.ImplementationDefinition
DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<V>, DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>Nested classes/interfaces inherited from interface DynamicType.Builder.MethodDefinition.TypeVariableDefinition
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase<V>, DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V>Nested classes/interfaces inherited from interface DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase<W> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeVariableTokenThe currently defined type variable. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new type variable annotation adapter. -
Method Summary
Modifier and TypeMethodDescriptionannotateTypeVariable(Collection<? extends AnnotationDescription> annotations) Annotates the previously defined type variable with the supplied annotations.Materializes this instance as a parameter definition with the currently defined properties.Methods inherited from class DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter
defaultValue, defaultValue, intercept, typeVariable, withoutCodeMethods inherited from class DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase
annotateTypeVariable, annotateTypeVariable, annotateTypeVariableMethods inherited from class DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase
typeVariable, typeVariable, typeVariable, typeVariableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DynamicType.Builder.MethodDefinition.TypeVariableDefinition
typeVariable, typeVariable, typeVariable, typeVariable
-
Field Details
-
token
The currently defined type variable.
-
-
Constructor Details
-
TypeVariableAnnotationAdapter
Creates a new type variable annotation adapter.- Parameters:
token- The currently defined type variable.
-
-
Method Details
-
materialize
Description copied from class:DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.AdapterMaterializes this instance as a parameter definition with the currently defined properties.- Specified by:
materializein classDynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter<U>- Returns:
- A parameter definition with the currently defined properties.
-
annotateTypeVariable
public DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> 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.
-