public static class MethodRebaseResolver.Default extends Object implements MethodRebaseResolver
MethodRebaseResolver.Default, MethodRebaseResolver.Disabled, MethodRebaseResolver.MethodNameTransformer, MethodRebaseResolver.Resolution| Modifier | Constructor and Description |
|---|---|
protected |
Default(Map<MethodDescription.InDefinedShape,MethodRebaseResolver.Resolution> resolutions,
List<DynamicType> dynamicTypes)
Creates a new default method rebased resolver.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
List<DynamicType> |
getAuxiliaryTypes()
Returns a (potentially empty) list of auxiliary types that are required by this method rebase resolver.
|
int |
hashCode() |
static MethodRebaseResolver |
make(TypeDescription instrumentedType,
MethodList<MethodDescription.InDefinedShape> rebaseableMethods,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a new method rebase resolver.
|
MethodRebaseResolver.Resolution |
resolve(MethodDescription.InDefinedShape methodDescription)
Checks if a method is eligible for rebasing and resolves this possibly rebased method.
|
String |
toString() |
protected Default(Map<MethodDescription.InDefinedShape,MethodRebaseResolver.Resolution> resolutions, List<DynamicType> dynamicTypes)
resolutions - A mapping of rebased methods to their existing resolutions.dynamicTypes - A list of dynamic types that need to be appended to the created type in order to allow for the rebasement.public static MethodRebaseResolver make(TypeDescription instrumentedType, MethodList<MethodDescription.InDefinedShape> rebaseableMethods, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
instrumentedType - The instrumented type.rebaseableMethods - The methods that are possible to rebase.classFileVersion - The class file version for the instrumentation.auxiliaryTypeNamingStrategy - The naming strategy for naming a potential auxiliary type.methodNameTransformer - A transformer for method names.public MethodRebaseResolver.Resolution resolve(MethodDescription.InDefinedShape methodDescription)
MethodRebaseResolverresolve in interface MethodRebaseResolvermethodDescription - A description of the method to resolve.public List<DynamicType> getAuxiliaryTypes()
MethodRebaseResolvergetAuxiliaryTypes in interface MethodRebaseResolverCopyright © 2014–2015. All rights reserved.