public class ShadowMap extends Object
Maps from instrumented class to shadow class.
We deal with class names rather than actual classes here, since a ShadowMap is built outside of any sandboxes, but instrumented and shadowed classes must be loaded through a SandboxClassLoader
. We don’t want to try to resolve those classes outside of a sandbox.
Once constructed, instances are immutable.
Modifier and Type | Class and Description |
---|---|
static class |
ShadowMap.Builder |
Modifier and Type | Method and Description |
---|---|
static String |
convertToShadowName(String className)
Deprecated.
do not use
|
static ShadowMap |
createFromShadowProviders(Iterable<ShadowProvider> shadowProviders) |
boolean |
equals(Object o) |
Set<String> |
getInvalidatedClasses(ShadowMap previous) |
ShadowInfo |
getShadowInfo(Class<?> clazz,
int apiLevel) |
int |
hashCode() |
ShadowMap.Builder |
newBuilder() |
static ShadowInfo |
obtainShadowInfo(Class<?> clazz) |
public static ShadowMap createFromShadowProviders(Iterable<ShadowProvider> shadowProviders)
public ShadowInfo getShadowInfo(Class<?> clazz, int apiLevel)
public static ShadowInfo obtainShadowInfo(Class<?> clazz)
@Deprecated public static String convertToShadowName(String className)
public ShadowMap.Builder newBuilder()