S
- The most specific known loaded type that is implemented by the created dynamic type, usually the
type itself, an interface or the direct super class.public static interface DynamicType.Builder.MatchedMethodInterception<S>
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodAnnotationTarget<S> |
intercept(Implementation implementation)
Intercepts the currently selected methods with the provided implementation.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
intercept(Implementation implementation,
MethodTransformer methodTransformer)
Intercepts the currently selected method by a given implementation.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
withDefaultValue(Object value)
Defines a default annotation value to set for any matched method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
withDefaultValue(Object value,
Class<?> type)
Defines a default annotation value to set for any matched method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
withDefaultValue(Object value,
Class<?> type,
MethodTransformer methodTransformer)
Defines a default annotation value to set for any matched method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
withDefaultValue(Object value,
MethodTransformer methodTransformer)
Defines a default annotation value to set for any matched method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
withoutCode()
Implements the currently selected methods as
abstract methods. |
DynamicType.Builder.MethodAnnotationTarget<S> |
withoutCode(MethodTransformer methodTransformer)
Implements the currently selected methods as
abstract methods. |
DynamicType.Builder.MethodAnnotationTarget<S> intercept(Implementation implementation)
implementation
- The implementation to apply to the currently selected method.DynamicType.Builder.MethodAnnotationTarget<S> intercept(Implementation implementation, MethodTransformer methodTransformer)
implementation
- An implementation to apply to the currently selected method.methodTransformer
- The method transformer to apply.DynamicType.Builder.MethodAnnotationTarget<S> withoutCode()
abstract
methods.abstract
methods.DynamicType.Builder.MethodAnnotationTarget<S> withoutCode(MethodTransformer methodTransformer)
abstract
methods.methodTransformer
- The method transformer to apply.abstract
methods.DynamicType.Builder.MethodAnnotationTarget<S> withDefaultValue(Object value, Class<?> type)
value
- The value that the annotation property should set as a default.type
- The type of the annotation property.DynamicType.Builder.MethodAnnotationTarget<S> withDefaultValue(Object value, Class<?> type, MethodTransformer methodTransformer)
value
- The value that the annotation property should set as a default.type
- The type of the annotation property.methodTransformer
- The method transformer to apply.DynamicType.Builder.MethodAnnotationTarget<S> withDefaultValue(Object value)
enum
values should be handed as EnumerationDescription
instances, annotations as AnnotationDescription
instances and
Class
values as TypeDescription
instances. Other values are handed in their actual form or as their wrapper types.value
- A non-loaded value that the annotation property should set as a default.DynamicType.Builder.MethodAnnotationTarget<S> withDefaultValue(Object value, MethodTransformer methodTransformer)
enum
values should be handed as EnumerationDescription
instances, annotations as AnnotationDescription
instances and
Class
values as TypeDescription
instances. Other values are handed in their raw format or as their wrapper types.value
- A non-loaded value that the annotation property should set as a default.methodTransformer
- The method transformer to apply.Copyright © 2014–2015. All rights reserved.