Package org.spockframework.mock.runtime
Class GroovyMockMetaClass
- java.lang.Object
-
- groovy.lang.DelegatingMetaClass
-
- org.spockframework.mock.runtime.GroovyMockMetaClass
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,groovy.lang.MetaClass,groovy.lang.MetaObjectProtocol,groovy.lang.MutableMetaClass
public class GroovyMockMetaClass extends groovy.lang.DelegatingMetaClass
-
-
Constructor Summary
Constructors Constructor Description GroovyMockMetaClass(IMockConfiguration configuration, Specification specification, groovy.lang.MetaClass oldMetaClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetProperty(java.lang.Object target, java.lang.String property)java.lang.ObjectinvokeConstructor(java.lang.Object[] arguments)java.lang.ObjectinvokeMethod(java.lang.Object target, java.lang.String method, java.lang.Object[] arguments)java.lang.ObjectinvokeStaticMethod(java.lang.Object target, java.lang.String method, java.lang.Object[] arguments)voidsetProperty(java.lang.Object target, java.lang.String property, java.lang.Object newValue)-
Methods inherited from class groovy.lang.DelegatingMetaClass
addMetaBeanProperty, addMetaMethod, addNewInstanceMethod, addNewStaticMethod, equals, getAdaptee, getAttribute, getAttribute, getClassNode, getMetaClass, getMetaMethod, getMetaMethods, getMetaProperty, getMethods, getProperties, getProperty, getProperty, getStaticMetaMethod, getStaticMetaMethod, getTheClass, hashCode, hasProperty, initialize, invokeMethod, invokeMethod, invokeMethod, invokeMissingMethod, invokeMissingProperty, isGroovyObject, isModified, pickMethod, respondsTo, respondsTo, selectConstructorAndTransformArguments, setAdaptee, setAttribute, setAttribute, setMetaClass, setProperty, setProperty, toString
-
-
-
-
Constructor Detail
-
GroovyMockMetaClass
public GroovyMockMetaClass(IMockConfiguration configuration, Specification specification, groovy.lang.MetaClass oldMetaClass)
-
-
Method Detail
-
invokeMethod
public java.lang.Object invokeMethod(java.lang.Object target, java.lang.String method, java.lang.Object[] arguments)- Specified by:
invokeMethodin interfacegroovy.lang.MetaObjectProtocol- Overrides:
invokeMethodin classgroovy.lang.DelegatingMetaClass
-
invokeStaticMethod
public java.lang.Object invokeStaticMethod(java.lang.Object target, java.lang.String method, java.lang.Object[] arguments)- Specified by:
invokeStaticMethodin interfacegroovy.lang.MetaObjectProtocol- Overrides:
invokeStaticMethodin classgroovy.lang.DelegatingMetaClass
-
invokeConstructor
public java.lang.Object invokeConstructor(java.lang.Object[] arguments)
- Specified by:
invokeConstructorin interfacegroovy.lang.MetaObjectProtocol- Overrides:
invokeConstructorin classgroovy.lang.DelegatingMetaClass
-
getProperty
public java.lang.Object getProperty(java.lang.Object target, java.lang.String property)- Specified by:
getPropertyin interfacegroovy.lang.MetaObjectProtocol- Overrides:
getPropertyin classgroovy.lang.DelegatingMetaClass
-
setProperty
public void setProperty(java.lang.Object target, java.lang.String property, java.lang.Object newValue)- Specified by:
setPropertyin interfacegroovy.lang.MetaObjectProtocol- Overrides:
setPropertyin classgroovy.lang.DelegatingMetaClass
-
-