public class MockProxyMetaClass
extends groovy.lang.ProxyMetaClass
Modifier and Type | Field and Description |
---|---|
boolean |
interceptConstruction |
EMPTY_ARGUMENTS, getPropertyMethod, INVOKE_METHOD_METHOD, invokeMethodMethod, isGroovyObject, isMap, metaMethodIndex, METHOD_MISSING, PROPERTY_MISSING, registry, setPropertyMethod, STATIC_METHOD_MISSING, STATIC_PROPERTY_MISSING, theCachedClass, theClass
Constructor and Description |
---|
MockProxyMetaClass(groovy.lang.MetaClassRegistry registry,
Class theClass,
groovy.lang.MetaClass adaptee) |
MockProxyMetaClass(groovy.lang.MetaClassRegistry registry,
Class theClass,
groovy.lang.MetaClass adaptee,
boolean interceptConstruction) |
Modifier and Type | Method and Description |
---|---|
Object |
getProperty(Class aClass,
Object object,
String property,
boolean b,
boolean b1) |
Object |
invokeConstructor(Object[] arguments)
Unlike general impl in superclass, ctors are not intercepted but relayed
unless interceptConstruction is set.
|
Object |
invokeMethod(Object object,
String methodName,
Object[] arguments) |
Object |
invokeStaticMethod(Object object,
String methodName,
Object[] arguments) |
static MockProxyMetaClass |
make(Class theClass)
convenience factory method for the most usual case.
|
static MockProxyMetaClass |
make(Class theClass,
boolean interceptConstruction)
convenience factory method allowing interceptConstruction to be set.
|
void |
setProperty(Class aClass,
Object object,
String property,
Object newValue,
boolean b,
boolean b1) |
getAdaptee, getInstance, getInterceptor, initialize, setAdaptee, setInterceptor, use, use
addMetaBeanProperty, addMetaMethod, addMetaMethodToIndex, addNewInstanceMethod, addNewStaticMethod, applyPropertyDescriptors, checkIfGroovyObjectMethod, checkInitalised, chooseMethod, clearInvocationCaches, createConstructorSite, createPogoCallCurrentSite, createPogoCallSite, createPojoCallSite, createStaticSite, dropMethodCache, dropStaticMethodCache, findMethodInClassHierarchy, findMixinMethod, findOwnMethod, findPropertyInClassHierarchy, getAdditionalMetaMethods, getAttribute, getAttribute, getAttribute, getClassInfo, getClassNode, getEffectiveGetMetaProperty, getMetaMethod, getMetaMethods, getMetaProperty, getMethods, getMethodWithCaching, getMethodWithoutCaching, getProperties, getProperty, getRegistry, getStaticMetaMethod, getSubclassMetaMethods, getSuperClasses, getTheCachedClass, getTheClass, getVersion, hasCustomInvokeMethod, hasCustomStaticInvokeMethod, hasProperty, incVersion, invokeMethod, invokeMethod, invokeMissingMethod, invokeMissingProperty, invokeStaticMissingProperty, isGroovyObject, isInitialized, isModified, onGetPropertyFoundInHierarchy, onInvokeMethodFoundInHierarchy, onMixinMethodFound, onSetPropertyFoundInHierarchy, onSuperMethodFoundInHierarchy, onSuperPropertyFoundInHierarchy, pickMethod, respondsTo, respondsTo, retrieveConstructor, retrieveConstructor, retrieveStaticMethod, selectConstructorAndTransformArguments, setAttribute, setAttribute, setProperties, setProperty, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public MockProxyMetaClass(groovy.lang.MetaClassRegistry registry, Class theClass, groovy.lang.MetaClass adaptee) throws IntrospectionException
adaptee
- the MetaClass to decorate with interceptabilityIntrospectionException
public MockProxyMetaClass(groovy.lang.MetaClassRegistry registry, Class theClass, groovy.lang.MetaClass adaptee, boolean interceptConstruction) throws IntrospectionException
adaptee
- the MetaClass to decorate with interceptabilityIntrospectionException
public static MockProxyMetaClass make(Class theClass) throws IntrospectionException
IntrospectionException
public static MockProxyMetaClass make(Class theClass, boolean interceptConstruction) throws IntrospectionException
IntrospectionException
public Object invokeMethod(Object object, String methodName, Object[] arguments)
invokeMethod
in interface groovy.lang.MetaObjectProtocol
invokeMethod
in class groovy.lang.ProxyMetaClass
public Object invokeStaticMethod(Object object, String methodName, Object[] arguments)
invokeStaticMethod
in interface groovy.lang.MetaObjectProtocol
invokeStaticMethod
in class groovy.lang.ProxyMetaClass
public Object getProperty(Class aClass, Object object, String property, boolean b, boolean b1)
getProperty
in interface groovy.lang.MetaClass
getProperty
in class groovy.lang.ProxyMetaClass
public void setProperty(Class aClass, Object object, String property, Object newValue, boolean b, boolean b1)
setProperty
in interface groovy.lang.MetaClass
setProperty
in class groovy.lang.ProxyMetaClass
public Object invokeConstructor(Object[] arguments)
invokeConstructor
in interface groovy.lang.MetaObjectProtocol
invokeConstructor
in class groovy.lang.ProxyMetaClass