Package org.spockframework.mock.runtime
Class StaticMockMethod
java.lang.Object
org.spockframework.mock.runtime.StaticMockMethod
- All Implemented Interfaces:
IMockMethod
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the exact parameter types of the method.Returns the exact return type of the method.getName()Returns the name of the method.Returns the exact parameter types of the method.Class<?> Returns the return type of the method.booleanisStatic()Tells whether the method is static or an instance method.
-
Constructor Details
-
StaticMockMethod
-
-
Method Details
-
getName
Description copied from interface:IMockMethodReturns the name of the method.- Specified by:
getNamein interfaceIMockMethod- Returns:
- the name of the method
-
getParameterTypes
Description copied from interface:IMockMethodReturns the exact parameter types of the method. If no static type information is available for the method, parameters are assumed to have typeObject.- Specified by:
getParameterTypesin interfaceIMockMethod- Returns:
- the parameter types of the method
-
getExactParameterTypes
Description copied from interface:IMockMethodReturns the exact parameter types of the method. Each returnedTypeis either aClassor aParameterizedType. Unbound type parameters are substituted withObject. If no static type information is available for the method, parameters are assumed to have typeObject.- Specified by:
getExactParameterTypesin interfaceIMockMethod- Returns:
- the exact parameter types of the method
-
getReturnType
Description copied from interface:IMockMethodReturns the return type of the method. If no static type information is available for the method, the return type is assumed to beObject.- Specified by:
getReturnTypein interfaceIMockMethod- Returns:
- the return type of the method
-
getExactReturnType
Description copied from interface:IMockMethodReturns the exact return type of the method. The returnedTypeis either aClassor aParameterizedType. In cases where no static type information is available, the return type is assumed to beObject.- Specified by:
getExactReturnTypein interfaceIMockMethod- Returns:
- the exact return type of the method
-
isStatic
public boolean isStatic()Description copied from interface:IMockMethodTells whether the method is static or an instance method.- Specified by:
isStaticin interfaceIMockMethod- Returns:
- whether the method is static or an instance method
-