public static class MethodRebaseResolver.MethodsOnly extends MethodRebaseResolver.AbstractBase
MethodRebaseResolver.AbstractBase, MethodRebaseResolver.Disabled, MethodRebaseResolver.Enabled, MethodRebaseResolver.MethodNameTransformer, MethodRebaseResolver.MethodsOnly, MethodRebaseResolver.Resolution
instrumentedMethods
REBASED_METHOD_MODIFIER
Modifier | Constructor and Description |
---|---|
protected |
MethodsOnly(Set<? extends MethodDescription> instrumentedMethods,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a new methods-only method rebase 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() |
protected static MethodRebaseResolver |
of(MethodList instrumentedMethods,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a new method rebase resolver that is only capable of rebasing methods but not constructors.
|
protected MethodRebaseResolver.Resolution |
rebase(MethodDescription methodDescription)
Resolves a method that is instrumented.
|
String |
toString() |
resolve
protected MethodsOnly(Set<? extends MethodDescription> instrumentedMethods, MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
instrumentedMethods
- The instrumented methods that are to be rebased.methodNameTransformer
- The method name transformer to use for rebasing methods.protected static MethodRebaseResolver of(MethodList instrumentedMethods, MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
instrumentedMethods
- The instrumented methods that should be rebased.methodNameTransformer
- The method name transformer to use for rebasing method names.protected MethodRebaseResolver.Resolution rebase(MethodDescription methodDescription)
MethodRebaseResolver.AbstractBase
rebase
in class MethodRebaseResolver.AbstractBase
methodDescription
- The method to be rebased.public List<DynamicType> getAuxiliaryTypes()
MethodRebaseResolver
public boolean equals(Object other)
equals
in class MethodRebaseResolver.AbstractBase
public int hashCode()
hashCode
in class MethodRebaseResolver.AbstractBase
Copyright © 2014–2015. All rights reserved.