Index
All Classes and Interfaces|All Packages
A
- attemptLoadClass(ClassLoader, String) - Static method in class org.robolectric.util.ReflectionHelpers
-
Attempt to load a class.
C
- callConstructor(Class<? extends R>, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively call the constructor of an object.
- callInstanceMethod(Class<?>, Object, String, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively call an instance method on an object on a specific class.
- callInstanceMethod(Object, String, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively call an instance method on an object.
- callStaticMethod(Class<?>, String, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively call a static method on a class.
- callStaticMethod(ClassLoader, String, String, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Helper method for calling a static method using a class from a custom class loader
- ClassParameter(Class<? extends V>, V) - Constructor for class org.robolectric.util.ReflectionHelpers.ClassParameter
- clazz - Variable in class org.robolectric.util.ReflectionHelpers.ClassParameter
- ConfigurationRegistry - Class in org.robolectric.config
-
Holds configuration objects for the current test, computed using
Configurer. - ConfigurationRegistry(Map<Class<?>, Object>) - Constructor for class org.robolectric.config.ConfigurationRegistry
- createDeepProxy(Class<T>) - Static method in class org.robolectric.util.ReflectionHelpers
-
Create a proxy for the given class which returns other deep proxies from all it's methods.
- createDelegatingProxy(Class<T>, Object) - Static method in class org.robolectric.util.ReflectionHelpers
-
Create a proxy for the given class which can delegate method calls to another object.
- createNullProxy(Class<T>) - Static method in class org.robolectric.util.ReflectionHelpers
-
Create a proxy for the given class which returns default values for every method call.
D
- defaultsFor(Class<A>) - Static method in class org.robolectric.util.ReflectionHelpers
- defaultValueForType(String) - Static method in class org.robolectric.util.ReflectionHelpers
- directInitialize(Class<?>) - Method in interface org.robolectric.internal.IShadow
- directInitialize(Class<?>) - Static method in class org.robolectric.shadow.api.Shadow
- directlyOn(Class<T>, String, ReflectionHelpers.ClassParameter<?>...) - Method in interface org.robolectric.internal.IShadow
- directlyOn(Class<T>, String, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.shadow.api.Shadow
- directlyOn(Object, String, String, ReflectionHelpers.ClassParameter<?>...) - Method in interface org.robolectric.internal.IShadow
- directlyOn(Object, String, String, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.shadow.api.Shadow
- directlyOn(T, Class<T>, String, ReflectionHelpers.ClassParameter<?>...) - Method in interface org.robolectric.internal.IShadow
- directlyOn(T, Class<T>, String, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.shadow.api.Shadow
- directMethodName(String, String) - Method in interface org.robolectric.internal.IShadow
- directMethodName(String, String) - Static method in class org.robolectric.shadow.api.Shadow
- directNativeMethodName(String, String) - Method in interface org.robolectric.internal.IShadow
- directNativeMethodName(String, String) - Static method in class org.robolectric.shadow.api.Shadow
- DoNotInstrument - Annotation Type in org.robolectric.annotation.internal
-
Indicates that a class should not be stripped/instrumented under any circumstances.
E
- extract(Object) - Method in interface org.robolectric.internal.IShadow
- extract(Object) - Static method in class org.robolectric.shadow.api.Shadow
-
Retrieve corresponding Shadow of the object.
F
- from(Class<? extends V>, V) - Static method in class org.robolectric.util.ReflectionHelpers.ClassParameter
- fromComponentLists(Class<?>[], Object[]) - Static method in class org.robolectric.util.ReflectionHelpers.ClassParameter
G
- get(Class<T>) - Static method in class org.robolectric.config.ConfigurationRegistry
-
Returns the configuration object of the specified class, computed using
Configurer. - getClasses(ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers.ClassParameter
- getField(Object, String) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively get the value of a field.
- getProvidedPackageNames() - Method in interface org.robolectric.internal.ShadowProvider
-
Array of Java package names that are shadowed by this package.
- getShadowPickerMap() - Method in interface org.robolectric.internal.ShadowProvider
-
Map of framework classes which may be represented by more than one shadow, to be picked at runtime.
- getShadows() - Method in interface org.robolectric.internal.ShadowProvider
-
Return a collection of Map.Entry objects representing the mapping of class name to shadow name.
- getStaticField(Class<?>, String) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively get the value of a static field.
- getStaticField(Field) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively get the value of a static field.
- getValues(ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.util.ReflectionHelpers.ClassParameter
H
- hasConstructor(Class<?>, Class<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively check if a class has a given constructor.
- hasConstructor(String, Class<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively check if a class has a given constructor.
- hasField(Class<?>, String) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively check if a class has a given field (static or non static).
- hasMethod(Class<?>, String, Class<?>...) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively check if a class has a given method.
I
- instance - Static variable in class org.robolectric.config.ConfigurationRegistry
- Instrument - Annotation Type in org.robolectric.annotation.internal
-
Indicates that a class should always be instrumented regardless of its package.
- invokeConstructor(Class<? extends R>, R, ReflectionHelpers.ClassParameter<?>...) - Method in interface org.robolectric.internal.IShadow
- invokeConstructor(Class<? extends R>, R, ReflectionHelpers.ClassParameter<?>...) - Static method in class org.robolectric.shadow.api.Shadow
- IShadow - Interface in org.robolectric.internal
L
- loadClass(ClassLoader, String) - Static method in class org.robolectric.util.ReflectionHelpers
-
Load a class.
N
- newInstance(Class<T>) - Static method in class org.robolectric.util.ReflectionHelpers
-
Create a new instance of a class
- newInstance(Class<T>, Class<?>[], Object[]) - Method in interface org.robolectric.internal.IShadow
- newInstance(Class<T>, Class<?>[], Object[]) - Static method in class org.robolectric.shadow.api.Shadow
- newInstanceOf(Class<T>) - Method in interface org.robolectric.internal.IShadow
- newInstanceOf(Class<T>) - Static method in class org.robolectric.shadow.api.Shadow
- newInstanceOf(String) - Static method in class org.robolectric.shadow.api.Shadow
O
- org.robolectric.annotation.internal - package org.robolectric.annotation.internal
- org.robolectric.config - package org.robolectric.config
- org.robolectric.internal - package org.robolectric.internal
- org.robolectric.shadow.api - package org.robolectric.shadow.api
- org.robolectric.util - package org.robolectric.util
R
- ReflectionHelpers - Class in org.robolectric.util
-
Collection of helper methods for calling methods and accessing fields reflectively.
- ReflectionHelpers() - Constructor for class org.robolectric.util.ReflectionHelpers
- ReflectionHelpers.ClassParameter<V> - Class in org.robolectric.util
-
Typed parameter used with reflective method calls.
- reset() - Method in interface org.robolectric.internal.ShadowProvider
-
Reset the static state of all shadows provided by this package.
S
- setField(Class<?>, Object, String, Object) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively set the value of a field.
- setField(Object, String, Object) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively set the value of a field.
- setStaticField(Class<?>, String, Object) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively set the value of a static field.
- setStaticField(Field, Object) - Static method in class org.robolectric.util.ReflectionHelpers
-
Reflectively set the value of a static field.
- Shadow - Class in org.robolectric.shadow.api
- Shadow() - Constructor for class org.robolectric.shadow.api.Shadow
- ShadowProvider - Interface in org.robolectric.internal
-
Interface implemented by packages that provide shadows to Robolectric.
V
- value - Variable in class org.robolectric.util.ReflectionHelpers.ClassParameter
All Classes and Interfaces|All Packages