public static interface ByteBuddy.MethodInterceptable
Modifier and Type | Method and Description |
---|---|
ByteBuddy.MethodAnnotationTarget |
intercept(Implementation implementation)
Intercepts the currently selected methods with the provided implementation.
|
ByteBuddy.MethodAnnotationTarget |
withDefaultValue(Object value)
Defines a default annotation value to set for any matched method.
|
ByteBuddy.MethodAnnotationTarget |
withDefaultValue(Object value,
Class<?> type)
Defines a default annotation value to set for any matched method.
|
ByteBuddy.MethodAnnotationTarget |
withoutCode()
Implements the currently selected methods as
abstract methods. |
ByteBuddy.MethodAnnotationTarget intercept(Implementation implementation)
implementation
- The implementation to apply to the currently selected method.ByteBuddy.MethodAnnotationTarget withoutCode()
abstract
methods.abstract
methods.ByteBuddy.MethodAnnotationTarget withDefaultValue(Object value, Class<?> type)
value
- The value that the annotation property should set as a default.type
- The type of the annotation property.ByteBuddy.MethodAnnotationTarget 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.Copyright © 2014–2015. All rights reserved.