ConstructorInvocation
public
final
class
ConstructorInvocation
extends Object
| java.lang.Object | |
| ↳ | android.support.test.espresso.remote.ConstructorInvocation |
Reflectively invokes the constructor of a declared class.
Summary
Public constructors | |
|---|---|
ConstructorInvocation(Class<?> clazz, Class<? extends Annotation> annotationClass, Class...<?> parameterTypes)
Creates a new |
|
Public methods | |
|---|---|
Object
|
invokeConstructor(Object... constructorParams)
Invokes the target constructor with the provided constructor parameters |
Inherited methods | |
|---|---|
java.lang.Object
| |
Public constructors
ConstructorInvocation
ConstructorInvocation (Class<?> clazz, Class<? extends Annotation> annotationClass, Class...<?> parameterTypes)
Creates a new ConstructorInvocation.
Constructor lookup is either done using an annotation by passing the annotationClass
as a parameter or through parameterTypes lookup. This class will attempt to lookup a
constructor by first looking for a constructor annotated with annotationClass. If no
constructors are found it will fallback and try to use parameterTypes.
| Parameters | |
|---|---|
clazz |
Class: the declared class to create the instance off |
annotationClass |
Class: the annotation class to lookup the constructor |
parameterTypes |
Class: array of parameter types to lookup a constructor on the declared class.
The declared order of parameter types must match the order of the constructor parameters
passed into invokeConstructor(Object).
|
Public methods
Interfaces
Classes
- ConstructorInvocation
- EspressoRemote
- FieldDescriptor
- GenericRemoteMessage
- InteractionRequest
- InteractionRequest.Builder
- InteractionResponse
- InteractionResponse.Builder
- InteractionResponse.RemoteError
- NoopRemoteInteraction
- ProtoUtils
- RemoteDescriptor
- RemoteDescriptor.Builder
- RemoteDescriptorRegistry
- RemoteInteractionRegistry
- TypeProtoConverters
Enums
Exceptions