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.Methodmethodprivate 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 booleanequals(java.lang.Object o)java.lang.Class<?>[]getExceptionTypes()java.lang.reflect.MethodgetJavaMethod()java.lang.StringgetName()java.lang.Class<?>[]getParameterTypes()java.lang.Class<?>getReturnType()inthashCode()booleanisAbstract()booleanisVarArgs()
-
-
-
Method Detail
-
getExceptionTypes
public java.lang.Class<?>[] getExceptionTypes()
- Specified by:
getExceptionTypesin interfaceMockitoMethod
-
getJavaMethod
public java.lang.reflect.Method getJavaMethod()
- Specified by:
getJavaMethodin interfaceMockitoMethod
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceMockitoMethod
-
getParameterTypes
public java.lang.Class<?>[] getParameterTypes()
- Specified by:
getParameterTypesin interfaceMockitoMethod
-
getReturnType
public java.lang.Class<?> getReturnType()
- Specified by:
getReturnTypein interfaceMockitoMethod
-
isVarArgs
public boolean isVarArgs()
- Specified by:
isVarArgsin interfaceMockitoMethod
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceAbstractAwareMethod
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin 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:
hashCodein classjava.lang.Object
-
-