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 aSandboxClassLoader
. 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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 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()
ShadowMap.Builder
newBuilder()
static ShadowInfo
obtainShadowInfo(Class<?> clazz)
-
-
-
Method Detail
-
createFromShadowProviders
public static ShadowMap createFromShadowProviders(List<ShadowProvider> sortedProviders)
-
getShadowInfo
public ShadowInfo getShadowInfo(Class<?> clazz, ShadowMatcher shadowMatcher)
-
obtainShadowInfo
public static ShadowInfo obtainShadowInfo(Class<?> clazz)
-
convertToShadowName
@Deprecated public static String convertToShadowName(String className)
Deprecated.do not use
-
newBuilder
public ShadowMap.Builder newBuilder()
-
-