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.Object
getProperty(java.lang.Object target, java.lang.String property)
java.lang.Object
invokeConstructor(java.lang.Object[] arguments)
java.lang.Object
invokeMethod(java.lang.Object target, java.lang.String method, java.lang.Object[] arguments)
java.lang.Object
invokeStaticMethod(java.lang.Object target, java.lang.String method, java.lang.Object[] arguments)
void
setProperty(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:
invokeMethod
in interfacegroovy.lang.MetaObjectProtocol
- Overrides:
invokeMethod
in classgroovy.lang.DelegatingMetaClass
-
invokeStaticMethod
public java.lang.Object invokeStaticMethod(java.lang.Object target, java.lang.String method, java.lang.Object[] arguments)
- Specified by:
invokeStaticMethod
in interfacegroovy.lang.MetaObjectProtocol
- Overrides:
invokeStaticMethod
in classgroovy.lang.DelegatingMetaClass
-
invokeConstructor
public java.lang.Object invokeConstructor(java.lang.Object[] arguments)
- Specified by:
invokeConstructor
in interfacegroovy.lang.MetaObjectProtocol
- Overrides:
invokeConstructor
in classgroovy.lang.DelegatingMetaClass
-
getProperty
public java.lang.Object getProperty(java.lang.Object target, java.lang.String property)
- Specified by:
getProperty
in interfacegroovy.lang.MetaObjectProtocol
- Overrides:
getProperty
in classgroovy.lang.DelegatingMetaClass
-
setProperty
public void setProperty(java.lang.Object target, java.lang.String property, java.lang.Object newValue)
- Specified by:
setProperty
in interfacegroovy.lang.MetaObjectProtocol
- Overrides:
setProperty
in classgroovy.lang.DelegatingMetaClass
-
-