public class ReplacementUtils extends Object
| Constructor and Description |
|---|
ReplacementUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<Method> |
chooseMethodFromCandidateReplacement(boolean isInSUT,
String name,
String desc,
List<MethodReplacementClass> candidateClasses,
boolean requirePure,
String contextClassName) |
static Class<?> |
getCastedToThirdParty(ClassLoader loader,
Annotation[] annotations) |
static String |
getDescriptor(Method m,
int skipFirsts,
int skipLast) |
static String |
getDescriptor(Method m,
int skipFirsts,
int skipLast,
boolean applyThirdPartyCast) |
static List<Class<?>> |
getParameterTypes(Method m,
int skipFirsts,
int skipLast,
boolean applyThirdPartyCast) |
static String |
getPossiblyModifiedName(Method m)
Given a method of a replacement class, return actually matching name for the target.
|
static ThirdPartyCast |
getThirdPartyCast(Annotation[] annotations) |
public static String getDescriptor(Method m, int skipFirsts, int skipLast, boolean applyThirdPartyCast)
public static List<Class<?>> getParameterTypes(Method m, int skipFirsts, int skipLast, boolean applyThirdPartyCast)
public static ThirdPartyCast getThirdPartyCast(Annotation[] annotations)
public static Class<?> getCastedToThirdParty(ClassLoader loader, Annotation[] annotations)
public static String getPossiblyModifiedName(Method m)
ThirdPartyCastCopyright © 2016–2024. All rights reserved.