Class ShadowMap
java.lang.Object
org.robolectric.internal.bytecode.ShadowMap
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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowMap.Builder
-
Method Summary
Modifier and Type Method Description static String
convertToShadowName(String className)
Deprecated.do not usestatic ShadowMap
createFromShadowProviders(List<ShadowProvider> sortedProviders)
boolean
equals(Object o)
Set<String>
getInvalidatedClasses(ShadowMap previous)
ShadowInfo
getShadowInfo(Class<?> clazz, ShadowMatcher shadowMatcher)
int
hashCode()
boolean
hasShadowPicker(MutableClass mutableClass)
ShadowMap.Builder
newBuilder()
static ShadowInfo
obtainShadowInfo(Class<?> clazz)
-
Method Details
-
createFromShadowProviders
-
hasShadowPicker
-
getShadowInfo
-
obtainShadowInfo
-
getInvalidatedClasses
-
convertToShadowName
Deprecated.do not use -
newBuilder
-
equals
-
hashCode
public int hashCode()
-