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

public Interface MethodRebaseResolver

Known Direct Implementers
org.easymock.bytebuddy.dynamic.scaffold.inline.MethodRebaseResolver.Disabled, org.easymock.bytebuddy.dynamic.scaffold.inline.MethodRebaseResolver.Default
Imports
org.easymock.bytebuddy.ClassFileVersion, org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, org.easymock.bytebuddy.description.annotation.AnnotationList, .AnnotationValue, org.easymock.bytebuddy.description.method.MethodDescription, .ParameterDescription, .ParameterList, org.easymock.bytebuddy.description.type.TypeDescription, .TypeList, org.easymock.bytebuddy.dynamic.DynamicType, org.easymock.bytebuddy.implementation.MethodAccessorFactory, org.easymock.bytebuddy.implementation.auxiliary.AuxiliaryType, .TrivialType, org.easymock.bytebuddy.utility.CompoundList, org.easymock.bytebuddy.utility.nullability.AlwaysNull, org.easymock.bytebuddy.jar.asm.Opcodes, javax.annotation.Nonnull, java.util.*

A method rebase resolver is responsible for mapping methods of an instrumented type to an alternative signature. This way a method can exist in two versions within a class:
  1. The rebased method which represents the original implementation as it is present in a class file.
  2. An overridden method which implements user code which is still able to invoke the original, rebased method.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
MethodRebaseResolver.Default

A default implementation of a method rebase resolver.

public static enum
MethodRebaseResolver.Disabled

A method rebase resolver that preserves any method in its original form.

public static interface
MethodRebaseResolver.Resolution

A resolution for a method that was checked by a MethodRebaseResolver.

Method Summary

Modifier and TypeMethod and Description
public Map<MethodDescription.SignatureToken, MethodRebaseResolver.Resolution>

Returns:

A map of all rebasable methods' signature tokens to their resolution.
asTokenMap
()

Returns a map of all rebasable methods' signature tokens to their resolution.

public List<DynamicType>

Returns:

A list of auxiliary types that are required by this method rebase resolver.
getAuxiliaryTypes
()

Returns a (potentially empty) list of auxiliary types that are required by this method rebase resolver.

public MethodRebaseResolver.Resolution

Returns:

A resolution for the given method.
resolve
(MethodDescription.InDefinedShape
A description of the method to resolve.
methodDescription
)

Checks if a method is eligible for rebasing and resolves this possibly rebased method.