Class InstrumentationConfiguration.Builder
- java.lang.Object
-
- org.robolectric.internal.bytecode.InstrumentationConfiguration.Builder
-
- Enclosing class:
- InstrumentationConfiguration
public static final class InstrumentationConfiguration.Builder extends Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(InstrumentationConfiguration classLoaderConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstrumentationConfiguration.Builder
addClassNameTranslation(String fromName, String toName)
InstrumentationConfiguration.Builder
addInstrumentedClass(String name)
InstrumentationConfiguration.Builder
addInstrumentedPackage(String packageName)
InstrumentationConfiguration.Builder
addInterceptedMethod(MethodRef methodReference)
InstrumentationConfiguration
build()
InstrumentationConfiguration.Builder
doNotAcquireClass(Class<?> clazz)
InstrumentationConfiguration.Builder
doNotAcquireClass(String className)
InstrumentationConfiguration.Builder
doNotAcquirePackage(String packageName)
InstrumentationConfiguration.Builder
doNotInstrumentClass(String className)
InstrumentationConfiguration.Builder
doNotInstrumentPackage(String packageName)
InstrumentationConfiguration.Builder
setDoNotInstrumentClassRegex(String classNameRegex)
-
-
-
Field Detail
-
instrumentedPackages
public final Collection<String> instrumentedPackages
-
interceptedMethods
public final Collection<MethodRef> interceptedMethods
-
classesToNotAcquire
public final Collection<String> classesToNotAcquire
-
packagesToNotAcquire
public final Collection<String> packagesToNotAcquire
-
instrumentedClasses
public final Collection<String> instrumentedClasses
-
classesToNotInstrument
public final Collection<String> classesToNotInstrument
-
packagesToNotInstrument
public final Collection<String> packagesToNotInstrument
-
classesToNotInstrumentRegex
public String classesToNotInstrumentRegex
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(InstrumentationConfiguration classLoaderConfig)
-
-
Method Detail
-
doNotAcquireClass
public InstrumentationConfiguration.Builder doNotAcquireClass(Class<?> clazz)
-
doNotAcquireClass
public InstrumentationConfiguration.Builder doNotAcquireClass(String className)
-
doNotAcquirePackage
public InstrumentationConfiguration.Builder doNotAcquirePackage(String packageName)
-
addClassNameTranslation
public InstrumentationConfiguration.Builder addClassNameTranslation(String fromName, String toName)
-
addInterceptedMethod
public InstrumentationConfiguration.Builder addInterceptedMethod(MethodRef methodReference)
-
addInstrumentedClass
public InstrumentationConfiguration.Builder addInstrumentedClass(String name)
-
addInstrumentedPackage
public InstrumentationConfiguration.Builder addInstrumentedPackage(String packageName)
-
doNotInstrumentClass
public InstrumentationConfiguration.Builder doNotInstrumentClass(String className)
-
doNotInstrumentPackage
public InstrumentationConfiguration.Builder doNotInstrumentPackage(String packageName)
-
setDoNotInstrumentClassRegex
public InstrumentationConfiguration.Builder setDoNotInstrumentClassRegex(String classNameRegex)
-
build
public InstrumentationConfiguration build()
-
-