Package org.mockito.internal.creation
Class DelegatingMethod
- java.lang.Object
-
- org.mockito.internal.creation.DelegatingMethod
-
- All Implemented Interfaces:
AbstractAwareMethod
,MockitoMethod
public class DelegatingMethod extends java.lang.Object implements MockitoMethod
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.Method
method
private java.lang.Class<?>[]
parameterTypes
-
Constructor Summary
Constructors Constructor Description DelegatingMethod(java.lang.reflect.Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
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()
-
-
-
Method Detail
-
getExceptionTypes
public java.lang.Class<?>[] getExceptionTypes()
- Specified by:
getExceptionTypes
in interfaceMockitoMethod
-
getJavaMethod
public java.lang.reflect.Method getJavaMethod()
- Specified by:
getJavaMethod
in interfaceMockitoMethod
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceMockitoMethod
-
getParameterTypes
public java.lang.Class<?>[] getParameterTypes()
- Specified by:
getParameterTypes
in interfaceMockitoMethod
-
getReturnType
public java.lang.Class<?> getReturnType()
- Specified by:
getReturnType
in interfaceMockitoMethod
-
isVarArgs
public boolean isVarArgs()
- Specified by:
isVarArgs
in interfaceMockitoMethod
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in interfaceAbstractAwareMethod
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
- Returns:
- True if the input object is a DelegatingMethod which has an internal Method which is equal to the internal Method of this DelegatingMethod, or if the input object is a Method which is equal to the internal Method of this DelegatingMethod.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-