public static class MethodRebaseResolver.Enabled extends MethodRebaseResolver.AbstractBase
MethodRebaseResolver.AbstractBase, MethodRebaseResolver.Disabled, MethodRebaseResolver.Enabled, MethodRebaseResolver.MethodNameTransformer, MethodRebaseResolver.MethodsOnly, MethodRebaseResolver.Resolution
instrumentedMethods
REBASED_METHOD_MODIFIER
Modifier | Constructor and Description |
---|---|
protected |
Enabled(Set<? extends MethodDescription> instrumentedMethods,
DynamicType placeholderType,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a new enabled 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() |
static MethodRebaseResolver |
make(MethodList instrumentedMethods,
TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a method rebase resolver which is only capable of rebasing constructors if the instrumented methods suggest this.
|
protected static MethodRebaseResolver |
of(MethodList instrumentedMethods,
DynamicType placeholderType,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a fully enabled method rebase resolver.
|
protected MethodRebaseResolver.Resolution |
rebase(MethodDescription methodDescription)
Resolves a method that is instrumented.
|
String |
toString() |
resolve
protected Enabled(Set<? extends MethodDescription> instrumentedMethods, DynamicType placeholderType, MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
instrumentedMethods
- A set of methods that are to be rebased.placeholderType
- The placeholder type to use for rebasing constructors.methodNameTransformer
- The method name transformer to use.public static MethodRebaseResolver make(MethodList instrumentedMethods, TypeDescription instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
instrumentedMethods
- The instrumented methods to consider for rebasement.instrumentedType
- The instrumented type.classFileVersion
- The class file version to define a potential auxiliary type in.auxiliaryTypeNamingStrategy
- A naming strategy to apply when naming an auxiliary type.methodNameTransformer
- The method name transformer to use.protected static MethodRebaseResolver of(MethodList instrumentedMethods, DynamicType placeholderType, MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
instrumentedMethods
- The instrumented methods.placeholderType
- The placeholder type to use as when rebasing constructors.methodNameTransformer
- The method name transformer to use.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.