Package org.mockito.internal.invocation
Class SerializableMethod
- java.lang.Object
-
- org.mockito.internal.invocation.SerializableMethod
-
- All Implemented Interfaces:
java.io.Serializable
,AbstractAwareMethod
,MockitoMethod
public class SerializableMethod extends java.lang.Object implements java.io.Serializable, MockitoMethod
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>
declaringClass
private java.lang.Class<?>[]
exceptionTypes
private boolean
isAbstract
private boolean
isVarArgs
private java.lang.reflect.Method
method
private java.lang.String
methodName
private java.lang.Class<?>[]
parameterTypes
private java.lang.Class<?>
returnType
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SerializableMethod(java.lang.reflect.Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.Class<?>[]
getExceptionTypes()
java.lang.reflect.Method
getJavaMethod()
java.lang.String
getName()
java.lang.Class<?>[]
getParameterTypes()
java.lang.Class<?>
getReturnType()
int
hashCode()
boolean
isAbstract()
boolean
isVarArgs()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
declaringClass
private final java.lang.Class<?> declaringClass
-
methodName
private final java.lang.String methodName
-
parameterTypes
private final java.lang.Class<?>[] parameterTypes
-
returnType
private final java.lang.Class<?> returnType
-
exceptionTypes
private final java.lang.Class<?>[] exceptionTypes
-
isVarArgs
private final boolean isVarArgs
-
isAbstract
private final boolean isAbstract
-
method
private transient volatile java.lang.reflect.Method method
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceMockitoMethod
-
getReturnType
public java.lang.Class<?> getReturnType()
- Specified by:
getReturnType
in interfaceMockitoMethod
-
getParameterTypes
public java.lang.Class<?>[] getParameterTypes()
- Specified by:
getParameterTypes
in interfaceMockitoMethod
-
getExceptionTypes
public java.lang.Class<?>[] getExceptionTypes()
- Specified by:
getExceptionTypes
in interfaceMockitoMethod
-
isVarArgs
public boolean isVarArgs()
- Specified by:
isVarArgs
in interfaceMockitoMethod
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in interfaceAbstractAwareMethod
-
getJavaMethod
public java.lang.reflect.Method getJavaMethod()
- Specified by:
getJavaMethod
in interfaceMockitoMethod
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-