U
- A loaded type that the built type is guaranteed to be a subclass of.public static interface DynamicType.Builder.MethodDefinition.TypeVariableDefinition<U> extends DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>
Modifier and Type | Interface and Description |
---|---|
static class |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase<V>
An abstract base implementation for defining an implementation of a method and optionally defining a type variable.
|
static interface |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V>
A builder for optionally defining an annotation for a type variable.
|
DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<V>
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
typeVariable(java.lang.String symbol)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
typeVariable(java.lang.String symbol,
java.util.Collection<? extends TypeDefinition> bounds)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
typeVariable(java.lang.String symbol,
java.util.List<? extends java.lang.reflect.Type> bounds)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
typeVariable(java.lang.String symbol,
java.lang.reflect.Type... bound)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
typeVariable(java.lang.String symbol,
TypeDefinition... bound)
Defines a method variable to be declared by the currently defined method.
|
defaultValue, defaultValue, intercept, withoutCode
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> typeVariable(java.lang.String symbol)
symbol
- The symbol of the type variable.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> typeVariable(java.lang.String symbol, java.lang.reflect.Type... bound)
symbol
- The symbol of the type variable.bound
- The bounds of the type variables. Can also be TargetType
for any type
if a bound type should be equal to the currently instrumented type.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> typeVariable(java.lang.String symbol, java.util.List<? extends java.lang.reflect.Type> bounds)
symbol
- The symbol of the type variable.bounds
- The bounds of the type variables. Can also be TargetType
for any type
if a bound type should be equal to the currently instrumented type.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> typeVariable(java.lang.String symbol, TypeDefinition... bound)
symbol
- The symbol of the type variable.bound
- The bounds of the type variables. Can also be TargetType
for any type
if a bound type should be equal to the currently instrumented type.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> typeVariable(java.lang.String symbol, java.util.Collection<? extends TypeDefinition> bounds)
symbol
- The symbol of the type variable.bounds
- The bounds of the type variables. Can also be TargetType
for any type
if a bound type should be equal to the currently instrumented type.