Class Shadows
java.lang.Object
org.robolectric.shadows.support.v4.Shadows
- All Implemented Interfaces:
ShadowProvider
@Generated("org.robolectric.annotation.processing.RobolectricProcessor") public class Shadows extends Object implements ShadowProvider
Shadow mapper. Automatically generated by the Robolectric Annotation Processor.
-
Constructor Summary
Constructors Constructor Description Shadows()
-
Method Summary
Modifier and Type Method Description String[]
getProvidedPackageNames()
Array of Java package names that are shadowed by this package.Map<String,String>
getShadowMap()
Return the mapping of class name to shadow name.Map<String,String>
getShadowPickerMap()
Map of framework classes which may be represented by more than one shadow, to be picked at runtime.void
reset()
Reset the static state of all shadows provided by this package.static ShadowLocalBroadcastManager
shadowOf(android.support.v4.content.LocalBroadcastManager actual)
static ShadowMediaBrowserCompat
shadowOf(android.support.v4.media.MediaBrowserCompat actual)
static ShadowDrawerLayout
shadowOf(android.support.v4.widget.DrawerLayout actual)
static ShadowSwipeRefreshLayout
shadowOf(android.support.v4.widget.SwipeRefreshLayout actual)
-
Constructor Details
-
Shadows
public Shadows()
-
-
Method Details
-
shadowOf
-
shadowOf
public static ShadowLocalBroadcastManager shadowOf(android.support.v4.content.LocalBroadcastManager actual) -
shadowOf
public static ShadowMediaBrowserCompat shadowOf(android.support.v4.media.MediaBrowserCompat actual) -
shadowOf
public static ShadowSwipeRefreshLayout shadowOf(android.support.v4.widget.SwipeRefreshLayout actual) -
reset
public void reset()Description copied from interface:ShadowProvider
Reset the static state of all shadows provided by this package.- Specified by:
reset
in interfaceShadowProvider
-
getShadowMap
Description copied from interface:ShadowProvider
Return the mapping of class name to shadow name.- Specified by:
getShadowMap
in interfaceShadowProvider
- Returns:
- Shadow mapping.
-
getProvidedPackageNames
Description copied from interface:ShadowProvider
Array of Java package names that are shadowed by this package.- Specified by:
getProvidedPackageNames
in interfaceShadowProvider
- Returns:
- Array of Java package names.
-
getShadowPickerMap
Description copied from interface:ShadowProvider
Map of framework classes which may be represented by more than one shadow, to be picked at runtime.- Specified by:
getShadowPickerMap
in interfaceShadowProvider
- Returns:
- A map from the name of the framework class to the name of its {#link org.robolectric.shadow.apiShadowPicker}.
-