C D E F G I L N O R S V 
All Classes All Packages

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
className - Variable in class org.robolectric.util.ReflectionHelpers.StringParameter
 
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
 
createNullProxy(Class<T>) - Static method in class org.robolectric.util.ReflectionHelpers
 

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>) - Method in interface org.robolectric.internal.IShadow
Deprecated.
This is incompatible with JDK17+. Use a org.robolectric.util.reflector.Reflector interface with org.robolectric.util.reflector.Direct.
directlyOn(T, Class<T>) - Static method in class org.robolectric.shadow.api.Shadow
Deprecated.
This is incompatible with JDK17+. Use a org.robolectric.util.reflector.Reflector interface with org.robolectric.util.reflector.Direct.
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
 
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
 
from(String, V) - Static method in class org.robolectric.util.ReflectionHelpers.StringParameter
 
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.
getShadowMap() - Method in interface org.robolectric.internal.ShadowProvider
Return the mapping of class name to shadow name.
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.
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
 

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.
ReflectionHelpers.StringParameter<V> - Class in org.robolectric.util
String 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.
StringParameter(String, V) - Constructor for class org.robolectric.util.ReflectionHelpers.StringParameter
 

V

val - Variable in class org.robolectric.util.ReflectionHelpers.ClassParameter
 
val - Variable in class org.robolectric.util.ReflectionHelpers.StringParameter
 
C D E F G I L N O R S V 
All Classes All Packages