Class ModuleMemberAccessor
java.lang.Object
org.mockito.internal.util.reflection.ModuleMemberAccessor
- All Implemented Interfaces:
MemberAccessor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mockito.plugins.MemberAccessor
MemberAccessor.ConstructionDispatcher, MemberAccessor.OnConstruction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewInstance(Constructor<?> constructor, Object... arguments) newInstance(Constructor<?> constructor, MemberAccessor.OnConstruction onConstruction, Object... arguments) void
-
Constructor Details
-
ModuleMemberAccessor
public ModuleMemberAccessor()
-
-
Method Details
-
newInstance
public Object newInstance(Constructor<?> constructor, Object... arguments) throws InstantiationException, InvocationTargetException, IllegalAccessException - Specified by:
newInstancein interfaceMemberAccessor- Throws:
InstantiationExceptionInvocationTargetExceptionIllegalAccessException
-
newInstance
public Object newInstance(Constructor<?> constructor, MemberAccessor.OnConstruction onConstruction, Object... arguments) throws InstantiationException, InvocationTargetException, IllegalAccessException - Specified by:
newInstancein interfaceMemberAccessor- Throws:
InstantiationExceptionInvocationTargetExceptionIllegalAccessException
-
invoke
public Object invoke(Method method, Object target, Object... arguments) throws InvocationTargetException, IllegalAccessException - Specified by:
invokein interfaceMemberAccessor- Throws:
InvocationTargetExceptionIllegalAccessException
-
get
- Specified by:
getin interfaceMemberAccessor- Throws:
IllegalAccessException
-
set
- Specified by:
setin interfaceMemberAccessor- Throws:
IllegalAccessException
-