public class ShadowMap
extends java.lang.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 java.lang.String |
convertToShadowName(java.lang.String className)
Deprecated.
do not use
|
static ShadowMap |
createFromShadowProviders(java.lang.Iterable<ShadowProvider> shadowProviders) |
boolean |
equals(java.lang.Object o) |
java.util.Set<java.lang.String> |
getInvalidatedClasses(ShadowMap previous) |
ShadowInfo |
getShadowInfo(java.lang.Class<?> clazz,
int apiLevel) |
int |
hashCode() |
ShadowMap.Builder |
newBuilder() |
static ShadowInfo |
obtainShadowInfo(java.lang.Class<?> clazz) |
public static ShadowMap createFromShadowProviders(java.lang.Iterable<ShadowProvider> shadowProviders)
public ShadowInfo getShadowInfo(java.lang.Class<?> clazz, int apiLevel)
public static ShadowInfo obtainShadowInfo(java.lang.Class<?> clazz)
public java.util.Set<java.lang.String> getInvalidatedClasses(ShadowMap previous)
@Deprecated public static java.lang.String convertToShadowName(java.lang.String className)
public ShadowMap.Builder newBuilder()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object