private static class MockMethodAdvice.RealMethodCall extends java.lang.Object implements RealMethod
RealMethod.FromBehavior, RealMethod.FromCallable, RealMethod.IsIllegal
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
arguments |
private MockWeakReference<java.lang.Object> |
instanceRef |
private java.lang.reflect.Method |
origin |
private MockMethodAdvice.SelfCallInfo |
selfCallInfo |
Modifier | Constructor and Description |
---|---|
private |
RealMethodCall(MockMethodAdvice.SelfCallInfo selfCallInfo,
java.lang.reflect.Method origin,
java.lang.Object instance,
java.lang.Object[] arguments) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke() |
boolean |
isInvokable() |
private final MockMethodAdvice.SelfCallInfo selfCallInfo
private final java.lang.reflect.Method origin
private final MockWeakReference<java.lang.Object> instanceRef
private final java.lang.Object[] arguments
private RealMethodCall(MockMethodAdvice.SelfCallInfo selfCallInfo, java.lang.reflect.Method origin, java.lang.Object instance, java.lang.Object[] arguments)
public boolean isInvokable()
isInvokable
in interface RealMethod
public java.lang.Object invoke() throws java.lang.Throwable
invoke
in interface RealMethod
java.lang.Throwable