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, invokeMethod, setAdaptee, setInterceptor, use, useaddMetaBeanProperty, addMetaMethod, addMetaMethodToIndex, addNewInstanceMethod, addNewStaticMethod, applyPropertyDescriptors, checkIfGroovyObjectMethod, checkInitalised, chooseMethod, clearInvocationCaches, createConstructorSite, createErrorMessageForAmbiguity, createPogoCallCurrentSite, createPogoCallSite, createPojoCallSite, createStaticSite, createTransformMetaMethod, doChooseMostSpecificParams, 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, handleMatches, hasCustomInvokeMethod, hasCustomStaticInvokeMethod, hasProperty, incVersion, invokeMethod, invokeMissingMethod, invokeMissingProperty, invokeStaticMissingProperty, isGroovyObject, isInitialized, isModified, onGetPropertyFoundInHierarchy, onInvokeMethodFoundInHierarchy, onMixinMethodFound, onSetPropertyFoundInHierarchy, onSuperMethodFoundInHierarchy, onSuperPropertyFoundInHierarchy, pickMethod, respondsTo, respondsTo, retrieveConstructor, retrieveConstructor, retrieveStaticMethod, selectConstructorAndTransformArguments, setAttribute, setAttribute, setProperties, setProperty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic MockProxyMetaClass(groovy.lang.MetaClassRegistry registry,
Class theClass,
groovy.lang.MetaClass adaptee)
adaptee - the MetaClass to decorate with interceptabilitypublic MockProxyMetaClass(groovy.lang.MetaClassRegistry registry,
Class theClass,
groovy.lang.MetaClass adaptee,
boolean interceptConstruction)
adaptee - the MetaClass to decorate with interceptabilitypublic static MockProxyMetaClass make(Class theClass)
public static MockProxyMetaClass make(Class theClass, boolean interceptConstruction)
public Object invokeMethod(Object object, String methodName, Object[] arguments)
invokeMethod in interface groovy.lang.MetaObjectProtocolinvokeMethod in class groovy.lang.ProxyMetaClasspublic Object invokeStaticMethod(Object object, String methodName, Object[] arguments)
invokeStaticMethod in interface groovy.lang.MetaObjectProtocolinvokeStaticMethod in class groovy.lang.ProxyMetaClasspublic Object getProperty(Class aClass, Object object, String property, boolean b, boolean b1)
getProperty in interface groovy.lang.MetaClassgetProperty in class groovy.lang.ProxyMetaClasspublic void setProperty(Class aClass, Object object, String property, Object newValue, boolean b, boolean b1)
setProperty in interface groovy.lang.MetaClasssetProperty in class groovy.lang.ProxyMetaClasspublic Object invokeConstructor(Object[] arguments)
invokeConstructor in interface groovy.lang.MetaObjectProtocolinvokeConstructor in class groovy.lang.ProxyMetaClass