Package net.bytebuddy.dynamic
Class DynamicType.Builder.AbstractBase.Adapter.TypeVariableDefinitionAdapter
- java.lang.Object
-
- net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase<U>
-
- net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Delegator<U>
-
- net.bytebuddy.dynamic.DynamicType.Builder.TypeVariableDefinition.AbstractBase<U>
-
- net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Adapter.TypeVariableDefinitionAdapter
-
- All Implemented Interfaces:
DynamicType.Builder<U>
,DynamicType.Builder.TypeVariableDefinition<U>
- Enclosing class:
- DynamicType.Builder.AbstractBase.Adapter<U>
protected class DynamicType.Builder.AbstractBase.Adapter.TypeVariableDefinitionAdapter extends DynamicType.Builder.TypeVariableDefinition.AbstractBase<U>
An adapter for defining a new type variable for the instrumented type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase
DynamicType.Builder.AbstractBase.Adapter<U>, DynamicType.Builder.AbstractBase.Delegator<U>
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder
DynamicType.Builder.AbstractBase<S>, DynamicType.Builder.FieldDefinition<S>, DynamicType.Builder.MethodDefinition<S>, DynamicType.Builder.TypeVariableDefinition<S>
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.TypeVariableDefinition
DynamicType.Builder.TypeVariableDefinition.AbstractBase<U>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TypeVariableDefinitionAdapter(TypeVariableToken token)
Creates a new type variable definition adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DynamicType.Builder.TypeVariableDefinition<U>
annotateTypeVariable(java.util.Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined type variable with the supplied annotations.boolean
equals(java.lang.Object other)
int
hashCode()
protected DynamicType.Builder<U>
materialize()
Creates a new builder that realizes the current state of the builder.-
Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.TypeVariableDefinition.AbstractBase
annotateTypeVariable, annotateTypeVariable, annotateTypeVariable
-
Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Delegator
annotateType, attribute, defineConstructor, defineField, defineMethod, field, ignoreAlso, ignoreAlso, implement, initializer, initializer, invokable, make, make, make, make, merge, modifiers, name, transform, typeVariable, visit
-
Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase
annotateType, annotateType, annotateType, constructor, define, define, define, define, define, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineProperty, defineProperty, defineProperty, defineProperty, field, implement, implement, implement, invokable, merge, method, modifiers, modifiers, serialVersionUid, typeVariable, typeVariable, typeVariable, typeVariable
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder
annotateType, annotateType, annotateType, annotateType, attribute, constructor, define, define, define, define, define, defineConstructor, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineProperty, defineProperty, defineProperty, defineProperty, field, field, ignoreAlso, ignoreAlso, implement, implement, implement, implement, initializer, initializer, invokable, invokable, make, make, make, make, merge, merge, method, modifiers, modifiers, modifiers, name, serialVersionUid, transform, typeVariable, typeVariable, typeVariable, typeVariable, typeVariable, visit
-
-
-
-
Constructor Detail
-
TypeVariableDefinitionAdapter
protected TypeVariableDefinitionAdapter(TypeVariableToken token)
Creates a new type variable definition adapter.- Parameters:
token
- The current definition of the type variable.
-
-
Method Detail
-
annotateTypeVariable
public DynamicType.Builder.TypeVariableDefinition<U> annotateTypeVariable(java.util.Collection<? extends AnnotationDescription> annotations)
Description copied from interface:DynamicType.Builder.TypeVariableDefinition
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.
-
materialize
protected DynamicType.Builder<U> materialize()
Description copied from class:DynamicType.Builder.AbstractBase.Delegator
Creates a new builder that realizes the current state of the builder.- Specified by:
materialize
in classDynamicType.Builder.AbstractBase.Delegator<U>
- Returns:
- A new builder that realizes the current state of the builder.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-