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(String symbol)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
typeVariable(String symbol,
Collection<? extends TypeDefinition> bounds)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
typeVariable(String symbol,
List<? extends Type> bounds)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
typeVariable(String symbol,
Type... bound)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
typeVariable(String symbol,
TypeDefinition... bound)
Defines a method variable to be declared by the currently defined method.
|
defaultValue, defaultValue, intercept, withoutCodeDynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> typeVariable(String symbol)
symbol - The symbol of the type variable.DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> typeVariable(String symbol, 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(String symbol, List<? extends 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(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(String symbol, 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.Copyright © 2014–2023. All rights reserved.