AdaptingMetaClass, MetaClass, MetaObjectProtocol, MutableMetaClasspublic class MockProxyMetaClass extends ProxyMetaClass
MetaClassImpl.Index| Modifier and Type | Field | Description |
|---|---|---|
boolean |
interceptConstruction |
getPropertyMethod, INVOKE_METHOD_METHOD, invokeMethodMethod, isGroovyObject, isMap, metaMethodIndex, METHOD_MISSING, PROPERTY_MISSING, registry, setPropertyMethod, STATIC_METHOD_MISSING, STATIC_PROPERTY_MISSING, theCachedClass, theClassadaptee, interceptor| Constructor | Description |
|---|---|
MockProxyMetaClass(MetaClassRegistry registry,
java.lang.Class theClass,
MetaClass adaptee) |
|
MockProxyMetaClass(MetaClassRegistry registry,
java.lang.Class theClass,
MetaClass adaptee,
boolean interceptConstruction) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
getProperty(java.lang.Class aClass,
java.lang.Object object,
java.lang.String property,
boolean b,
boolean b1) |
Interceptors the call to getProperty if a PropertyAccessInterceptor is
available
|
java.lang.Object |
invokeConstructor(java.lang.Object[] arguments) |
Unlike general impl in superclass, ctors are not intercepted but relayed
unless interceptConstruction is set.
|
java.lang.Object |
invokeMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.Object[] arguments) |
Call invokeMethod on adaptee with logic like in MetaClass unless we have an Interceptor.
|
java.lang.Object |
invokeStaticMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.Object[] arguments) |
Call invokeStaticMethod on adaptee with logic like in MetaClass unless we have an Interceptor.
|
static MockProxyMetaClass |
make(java.lang.Class theClass) |
convenience factory method for the most usual case.
|
static MockProxyMetaClass |
make(java.lang.Class theClass,
boolean interceptConstruction) |
convenience factory method allowing interceptConstruction to be set.
|
void |
setProperty(java.lang.Class aClass,
java.lang.Object object,
java.lang.String property,
java.lang.Object newValue,
boolean b,
boolean b1) |
Interceptors the call to a property setter if a PropertyAccessInterceptor
is available
|
getAttribute, getClassNode, getMetaMethods, getMethods, getProperties, invokeMethod, invokeMissingMethod, invokeMissingProperty, pickMethod, selectConstructorAndTransformArguments, setAttributeaddMetaBeanProperty, 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, getStaticMetaMethod, getSubclassMetaMethods, getSuperClasses, getTheCachedClass, getTheClass, getVersion, hasProperty, incVersion, invokeConstructorAt, invokeMethod, invokeMethod, invokeMissingMethod, invokeMissingProperty, invokeStaticMissingProperty, isGroovyObject, isInitialized, isModified, onGetPropertyFoundInHierarchy, onInvokeMethodFoundInHierarchy, onMixinMethodFound, onSetPropertyFoundInHierarchy, onSuperMethodFoundInHierarchy, onSuperPropertyFoundInHierarchy, pickMethod, respondsTo, respondsTo, retrieveConstructor, retrieveMethod, retrieveStaticMethod, selectConstructorAndTransformArguments, setAttribute, setAttribute, setProperties, setProperty, toStringgetAttribute, getMetaMethod, getMetaProperty, getProperty, getStaticMetaMethod, getTheClass, hasProperty, invokeMethod, respondsTo, respondsTo, setAttribute, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAdaptee, getInstance, getInterceptor, initialize, setAdaptee, setInterceptor, use, usepublic MockProxyMetaClass(MetaClassRegistry registry, java.lang.Class theClass, MetaClass adaptee) throws java.beans.IntrospectionException
adaptee - the MetaClass to decorate with interceptabilityjava.beans.IntrospectionExceptionpublic MockProxyMetaClass(MetaClassRegistry registry, java.lang.Class theClass, MetaClass adaptee, boolean interceptConstruction) throws java.beans.IntrospectionException
adaptee - the MetaClass to decorate with interceptabilityjava.beans.IntrospectionExceptionpublic static MockProxyMetaClass make(java.lang.Class theClass) throws java.beans.IntrospectionException
java.beans.IntrospectionExceptionpublic static MockProxyMetaClass make(java.lang.Class theClass, boolean interceptConstruction) throws java.beans.IntrospectionException
java.beans.IntrospectionExceptionpublic java.lang.Object invokeMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.Object[] arguments)
ProxyMetaClassinvokeMethod in interface MetaObjectProtocolinvokeMethod in class ProxyMetaClassobject - The instance which the method is invoked onmethodName - The name of the methodarguments - The arguments to the methodMissingMethodExceptionpublic java.lang.Object invokeStaticMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.Object[] arguments)
ProxyMetaClassinvokeStaticMethod in interface MetaObjectProtocolinvokeStaticMethod in class ProxyMetaClassobject - An instance of the class returned by the getTheClass() method or the class itselfmethodName - The name of the methodarguments - The arguments to the methodMissingMethodExceptionpublic java.lang.Object getProperty(java.lang.Class aClass,
java.lang.Object object,
java.lang.String property,
boolean b,
boolean b1)
ProxyMetaClassgetProperty in interface MetaClassgetProperty in class ProxyMetaClassaClass - The java.lang.Class instance that requested the propertyobject - the object to invoke the getter onproperty - the property nameb - Whether the call is to a super class propertyb1 - ??public void setProperty(java.lang.Class aClass,
java.lang.Object object,
java.lang.String property,
java.lang.Object newValue,
boolean b,
boolean b1)
ProxyMetaClasssetProperty in interface MetaClasssetProperty in class ProxyMetaClassaClass - The java.lang.Class instance that is mutating the propertyobject - The object to invoke the setter onproperty - The property name to setnewValue - The new value of the propertyb - Whether the call is to a super class propertyb1 - ??public java.lang.Object invokeConstructor(java.lang.Object[] arguments)
invokeConstructor in interface MetaObjectProtocolinvokeConstructor in class ProxyMetaClassarguments - The arguments to the constructor