public static class ByteBuddy.OptionalMethodInterception extends ByteBuddy implements ByteBuddy.MethodInterceptable
ByteBuddy.Definable<T>, ByteBuddy.MatchedMethodInterception, ByteBuddy.MethodAnnotationTarget, ByteBuddy.MethodInterceptable, ByteBuddy.OptionalMethodInterception, ByteBuddy.Proxy| Modifier and Type | Field and Description |
|---|---|
protected ElementMatcher<? super MethodDescription> |
methodMatcher
The method matcher that defines the selected that is represented by this instance.
|
bridgeMethodResolverFactory, BYTE_BUDDY_DEFAULT_PREFIX, classFileVersion, classVisitorWrapperChain, defaultFieldAttributeAppenderFactory, defaultMethodAttributeAppenderFactory, ignoredMethods, interfaceTypes, methodLookupEngineFactory, methodRegistry, modifiers, namingStrategy, typeAttributeAppender| Modifier | Constructor and Description |
|---|---|
protected |
OptionalMethodInterception(ClassFileVersion classFileVersion,
NamingStrategy.Unbound namingStrategy,
List<TypeDescription> interfaceTypes,
ElementMatcher<? super MethodDescription> ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
TypeAttributeAppender typeAttributeAppender,
MethodLookupEngine.Factory methodLookupEngineFactory,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
ElementMatcher<? super MethodDescription> methodMatcher)
Creates a new optional method interception.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
ByteBuddy.MethodAnnotationTarget |
intercept(Instrumentation instrumentation)
Intercepts the given method with the given instrumentation.
|
String |
toString() |
ByteBuddy.MethodAnnotationTarget |
withoutCode()
Defines the currently selected methods as
abstract. |
constructor, getBridgeMethodResolverFactory, getClassFileVersion, getClassVisitorWrapperChain, getDefaultFieldAttributeAppenderFactory, getDefaultMethodAttributeAppenderFactory, getIgnoredMethods, getInterfaceTypes, getMethodLookupEngineFactory, getMethodRegistry, getModifiers, getNamingStrategy, getTypeAttributeAppender, invokable, method, rebase, rebase, rebase, rebase, rebase, redefine, redefine, redefine, subclass, subclass, subclass, subclass, withAttribute, withBridgeMethodResolver, withClassFileVersion, withClassVisitor, withDefaultFieldAttributeAppender, withDefaultMethodAttributeAppender, withIgnoredMethods, withImplementing, withImplementing, withMethodLookupEngine, withModifiers, withNamingStrategy, withNamingStrategy, withTypeAnnotationprotected final ElementMatcher<? super MethodDescription> methodMatcher
protected OptionalMethodInterception(ClassFileVersion classFileVersion, NamingStrategy.Unbound namingStrategy, List<TypeDescription> interfaceTypes, ElementMatcher<? super MethodDescription> ignoredMethods, BridgeMethodResolver.Factory bridgeMethodResolverFactory, ClassVisitorWrapper.Chain classVisitorWrapperChain, MethodRegistry methodRegistry, ByteBuddy.Definable<Integer> modifiers, TypeAttributeAppender typeAttributeAppender, MethodLookupEngine.Factory methodLookupEngineFactory, FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory, MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory, ElementMatcher<? super MethodDescription> methodMatcher)
classFileVersion - The currently defined class file version.namingStrategy - The currently defined naming strategy.interfaceTypes - The currently defined collection of interfaces to be implemented
by any dynamically created type.ignoredMethods - The methods to always be ignored.bridgeMethodResolverFactory - The bridge method resolver factory to be applied to any instrumentation
process.classVisitorWrapperChain - The class visitor wrapper chain to be applied to any instrumentation
process.methodRegistry - The currently valid method registry.modifiers - The modifiers to define for any instrumentation process.typeAttributeAppender - The type attribute appender to apply to any instrumentation process.methodLookupEngineFactory - The method lookup engine factory to apply to this configuration.defaultFieldAttributeAppenderFactory - The field attribute appender to apply as a default for any field
definition.defaultMethodAttributeAppenderFactory - The method attribute appender to apply as a default for any
method definition or instrumentation.methodMatcher - The method matcher representing the current method selection.public ByteBuddy.MethodAnnotationTarget intercept(Instrumentation instrumentation)
ByteBuddy.MethodInterceptableintercept in interface ByteBuddy.MethodInterceptableinstrumentation - The instrumentation to apply to the selected methods.public ByteBuddy.MethodAnnotationTarget withoutCode()
ByteBuddy.MethodInterceptableabstract.withoutCode in interface ByteBuddy.MethodInterceptableabstract.Copyright © 2014. All rights reserved.