public class ByteBuddy.MatchedMethodInterception extends Object implements ByteBuddy.MethodInterceptable
| Modifier and Type | Field and Description |
|---|---|
protected LatentMethodMatcher |
methodMatcher
A method matcher that represents the current method selection.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MatchedMethodInterception(LatentMethodMatcher methodMatcher)
Creates a new matched method interception.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
ByteBuddy.MethodAnnotationTarget |
intercept(Implementation implementation)
Intercepts the given method with the given implementations.
|
String |
toString() |
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()
Defines the currently selected methods as
abstract. |
protected final LatentMethodMatcher methodMatcher
protected MatchedMethodInterception(LatentMethodMatcher methodMatcher)
methodMatcher - The method matcher representing the current method selection.public ByteBuddy.MethodAnnotationTarget intercept(Implementation implementation)
ByteBuddy.MethodInterceptableintercept in interface ByteBuddy.MethodInterceptableimplementation - The implementation to apply to the selected methods.public ByteBuddy.MethodAnnotationTarget withoutCode()
ByteBuddy.MethodInterceptableabstract.withoutCode in interface ByteBuddy.MethodInterceptableabstract.public ByteBuddy.MethodAnnotationTarget withDefaultValue(Object value, Class<?> type)
ByteBuddy.MethodInterceptablewithDefaultValue in interface ByteBuddy.MethodInterceptablevalue - The value that the annotation property should set as a default.type - The type of the annotation property.public ByteBuddy.MethodAnnotationTarget withDefaultValue(Object value)
ByteBuddy.MethodInterceptableenum 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.withDefaultValue in interface ByteBuddy.MethodInterceptablevalue - A non-loaded value that the annotation property should set as a default.Copyright © 2014–2015. All rights reserved.