public class InvocationInfo extends java.lang.Object implements AbstractAwareMethod
| Modifier and Type | Field and Description |
|---|---|
private java.lang.reflect.Method |
method |
| Constructor and Description |
|---|
InvocationInfo(InvocationOnMock theInvocation) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Method |
getMethod() |
java.lang.String |
getMethodName() |
boolean |
isAbstract() |
boolean |
isDeclaredOnInterface() |
boolean |
isValidException(java.lang.Throwable throwable) |
boolean |
isValidReturnType(java.lang.Class<?> clazz) |
boolean |
isVoid()
Returns
true is the return type is Void or represents the pseudo-type to the keyword void. |
java.lang.String |
printMethodReturnType() |
boolean |
returnsPrimitive() |
public InvocationInfo(InvocationOnMock theInvocation)
public boolean isValidException(java.lang.Throwable throwable)
public boolean isValidReturnType(java.lang.Class<?> clazz)
public boolean isVoid()
true is the return type is Void or represents the pseudo-type to the keyword void.
E.g: void foo() or Void bar()public java.lang.String printMethodReturnType()
public java.lang.String getMethodName()
public boolean returnsPrimitive()
public java.lang.reflect.Method getMethod()
public boolean isDeclaredOnInterface()
public boolean isAbstract()
isAbstract in interface AbstractAwareMethod