Top Description Inners Methods
org.easymock.bytebuddy.dynamic.scaffold

public Interface MethodRegistry

Known Direct Implementers
org.easymock.bytebuddy.dynamic.scaffold.MethodRegistry.Default
Imports
org.easymock.bytebuddy.ClassFileVersion, org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, org.easymock.bytebuddy.description.annotation.AnnotationValue, org.easymock.bytebuddy.description.method.MethodDescription, .MethodList, org.easymock.bytebuddy.description.modifier.Visibility, org.easymock.bytebuddy.description.type.TypeDefinition, .TypeDescription, org.easymock.bytebuddy.dynamic.Transformer, .VisibilityBridgeStrategy, org.easymock.bytebuddy.implementation.Implementation, .LoadedTypeInitializer, org.easymock.bytebuddy.implementation.attribute.MethodAttributeAppender, org.easymock.bytebuddy.implementation.bytecode.ByteCodeAppender, org.easymock.bytebuddy.matcher.ElementMatcher, .LatentMatcher, org.easymock.bytebuddy.utility.CompoundList, java.util.*

A method registry is responsible for storing information on how a method is intercepted.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
MethodRegistry.Compiled

A compiled version of a method registry.

public static class
MethodRegistry.Default

A default implementation of a method registry.

public static interface
MethodRegistry.Handler

A handler for implementing a method.

public static interface
MethodRegistry.Prepared

A method registry that fully prepared the instrumented type.

Method Summary

Modifier and TypeMethod and Description
public MethodRegistry

Returns:

An adapted version of this method registry.
append
(LatentMatcher<? super MethodDescription>
A matcher to identify all entries that are to be matched.
methodMatcher
,
MethodRegistry.Handler
The handler to instrument any matched method.
handler
,
MethodAttributeAppender.Factory
A method attribute appender to apply to any matched method.
attributeAppenderFactory
,
Transformer<MethodDescription>
The method transformer to be applied to implemented methods.
transformer
)

Appends the given method definition to this method registry, i.e. this configuration is applied last.

public MethodRegistry.Prepared

Returns:

A prepared version of this method registry.
prepare
(InstrumentedType
The instrumented type that should be created.
instrumentedType
,
MethodGraph.Compiler
The method graph compiler to be used for analyzing the fully assembled instrumented type.
methodGraphCompiler
,
TypeValidation
Determines if a type should be explicitly validated.
typeValidation
,
VisibilityBridgeStrategy
The visibility bridge strategy to apply.
visibilityBridgeStrategy
,
LatentMatcher<? super MethodDescription>
A filter that only matches methods that should be instrumented.
ignoredMethods
)

Prepares this method registry.

public MethodRegistry

Returns:

An adapted version of this method registry.
prepend
(LatentMatcher<? super MethodDescription>
A matcher to identify any method that this definition concerns.
methodMatcher
,
MethodRegistry.Handler
The handler to instrument any matched method.
handler
,
MethodAttributeAppender.Factory
A method attribute appender to apply to any matched method.
attributeAppenderFactory
,
Transformer<MethodDescription>
The method transformer to be applied to implemented methods.
transformer
)

Prepends the given method definition to this method registry, i.e. this configuration is applied first.