Package org.spockframework.mock.runtime
Class StaticMockMethod
java.lang.Object
org.spockframework.mock.runtime.StaticMockMethod
- All Implemented Interfaces:
IMockMethod
-
Constructor Details
-
StaticMockMethod
-
-
Method Details
-
getName
Description copied from interface:IMockMethod
Returns the name of the method.- Specified by:
getName
in interfaceIMockMethod
- Returns:
- the name of the method
-
getParameterTypes
Description copied from interface:IMockMethod
Returns the parameter types of the method. In cases where no static type information is available, all arguments are assumed to have typeObject
.- Specified by:
getParameterTypes
in interfaceIMockMethod
- Returns:
- the parameter types of the method
-
getReturnType
Description copied from interface:IMockMethod
Returns the return type of the method. In cases where no static type information is available, the return type is assumed to beObject
.- Specified by:
getReturnType
in interfaceIMockMethod
- Returns:
- the return type of the method
-
isStatic
public boolean isStatic()Description copied from interface:IMockMethod
Tells whether the method is static or an instance method.- Specified by:
isStatic
in interfaceIMockMethod
- Returns:
- whether the method is static or an instance method
-