@HashCodeAndEqualsPlugin.Enhance(includeSyntheticFields=true) protected class DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.TypeVariableAnnotationAdapter extends DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter<U>
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter<X>
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase<W>
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V>
DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>
Modifier and Type | Field and Description |
---|---|
private TypeVariableToken |
token
The currently defined type variable.
|
Modifier | Constructor and Description |
---|---|
protected |
TypeVariableAnnotationAdapter(TypeVariableToken token)
Creates a new type variable annotation adapter.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
annotateTypeVariable(java.util.Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined type variable with the supplied annotations.
|
protected DynamicType.Builder.MethodDefinition.ParameterDefinition<U> |
materialize()
Materializes this instance as a parameter definition with the currently defined properties.
|
defaultValue, defaultValue, intercept, typeVariable, withoutCode
annotateTypeVariable, annotateTypeVariable, annotateTypeVariable
typeVariable, typeVariable, typeVariable, typeVariable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
typeVariable, typeVariable, typeVariable, typeVariable
private final TypeVariableToken token
protected TypeVariableAnnotationAdapter(TypeVariableToken token)
token
- The currently defined type variable.protected DynamicType.Builder.MethodDefinition.ParameterDefinition<U> materialize()
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter
materialize
in class DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter<U>
public DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> annotateTypeVariable(java.util.Collection<? extends AnnotationDescription> annotations)
annotations
- The annotations to declare on the previously defined type variable.