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,
java.lang.Class theClass,
groovy.lang.MetaClass adaptee) |
MockProxyMetaClass(groovy.lang.MetaClassRegistry registry,
java.lang.Class theClass,
groovy.lang.MetaClass adaptee,
boolean interceptConstruction) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getProperty(java.lang.Class aClass,
java.lang.Object object,
java.lang.String property,
boolean b,
boolean b1) |
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) |
java.lang.Object |
invokeStaticMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.Object[] arguments) |
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) |
getAdaptee, getInstance, getInterceptor, initialize, invokeMethod, setAdaptee, setInterceptor, use, use
addMetaBeanProperty, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public MockProxyMetaClass(groovy.lang.MetaClassRegistry registry, java.lang.Class theClass, groovy.lang.MetaClass adaptee)
adaptee
- the MetaClass to decorate with interceptabilitypublic MockProxyMetaClass(groovy.lang.MetaClassRegistry registry, java.lang.Class theClass, groovy.lang.MetaClass adaptee, boolean interceptConstruction)
adaptee
- the MetaClass to decorate with interceptabilitypublic static MockProxyMetaClass make(java.lang.Class theClass)
public static MockProxyMetaClass make(java.lang.Class theClass, boolean interceptConstruction)
public java.lang.Object invokeMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object[] arguments)
invokeMethod
in interface groovy.lang.MetaObjectProtocol
invokeMethod
in class groovy.lang.ProxyMetaClass
public java.lang.Object invokeStaticMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object[] arguments)
invokeStaticMethod
in interface groovy.lang.MetaObjectProtocol
invokeStaticMethod
in class groovy.lang.ProxyMetaClass
public java.lang.Object getProperty(java.lang.Class aClass, java.lang.Object object, java.lang.String property, boolean b, boolean b1)
getProperty
in interface groovy.lang.MetaClass
getProperty
in class groovy.lang.ProxyMetaClass
public void setProperty(java.lang.Class aClass, java.lang.Object object, java.lang.String property, java.lang.Object newValue, boolean b, boolean b1)
setProperty
in interface groovy.lang.MetaClass
setProperty
in class groovy.lang.ProxyMetaClass
public java.lang.Object invokeConstructor(java.lang.Object[] arguments)
invokeConstructor
in interface groovy.lang.MetaObjectProtocol
invokeConstructor
in class groovy.lang.ProxyMetaClass