X
- A loaded type that the built type is guaranteed to be a subclass of.protected abstract static class DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter<X> extends DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase<X>
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 | Constructor and Description |
---|---|
protected |
Adapter() |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodDefinition<X> |
defaultValue(Object value)
Defines the previously defined or matched method to return the supplied value as an annotation default value.
|
DynamicType.Builder.MethodDefinition<X> |
defaultValue(Object value,
Class<?> type)
Defines the previously defined or matched method to return the supplied value as an annotation default value.
|
DynamicType.Builder.MethodDefinition<X> |
intercept(Implementation implementation)
Implements the previously defined or matched method by the supplied implementation.
|
protected abstract DynamicType.Builder.MethodDefinition.ParameterDefinition<X> |
materialize()
Materializes this instance as a parameter definition with the currently defined properties.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<X> |
typeVariable(String symbol,
Collection<? extends TypeDefinition> bounds)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition<X> |
withoutCode()
Defines the previously defined or matched method to be
abstract . |
annotateTypeVariable, annotateTypeVariable, annotateTypeVariable
typeVariable, typeVariable, typeVariable, typeVariable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
annotateTypeVariable
typeVariable, typeVariable, typeVariable, typeVariable
public DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<X> typeVariable(String symbol, Collection<? extends TypeDefinition> bounds)
DynamicType.Builder.MethodDefinition.TypeVariableDefinition
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.public DynamicType.Builder.MethodDefinition<X> intercept(Implementation implementation)
DynamicType.Builder.MethodDefinition.ImplementationDefinition
implementation
- The implementation for implementing the previously defined or matched method.public DynamicType.Builder.MethodDefinition<X> withoutCode()
DynamicType.Builder.MethodDefinition.ImplementationDefinition
abstract
.public DynamicType.Builder.MethodDefinition<X> defaultValue(Object value)
DynamicType.Builder.MethodDefinition.ImplementationDefinition
EnumerationDescription
,
types as TypeDescription
and annotations as AnnotationDescription
. For supplying loaded types, use
DynamicType.Builder.MethodDefinition.ImplementationDefinition.defaultValue(Object, Class)
must be used.value
- The value to be defined as a default value.public DynamicType.Builder.MethodDefinition<X> defaultValue(Object value, Class<?> type)
DynamicType.Builder.MethodDefinition.ImplementationDefinition
defaultValue
in interface DynamicType.Builder.MethodDefinition.ImplementationDefinition<X>
defaultValue
in class DynamicType.Builder.MethodDefinition.ImplementationDefinition.AbstractBase<X>
value
- The value to be defined as a default value.type
- The type of the annotation property.protected abstract DynamicType.Builder.MethodDefinition.ParameterDefinition<X> materialize()
Copyright © 2014–2016. All rights reserved.