|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgroovy.lang.DelegatingMetaClass
org.codehaus.groovy.grails.commons.metaclass.CachingMetaClass
public class CachingMetaClass
A MetaClass that intercepts and caches invocations
| Field Summary | |
|---|---|
protected Map |
methodInfoCache
|
protected Map |
propertyInfoCache
|
| Fields inherited from class groovy.lang.DelegatingMetaClass |
|---|
delegate |
| Constructor Summary | |
|---|---|
CachingMetaClass(Class aClass)
|
|
CachingMetaClass(groovy.lang.MetaClass metaClass)
|
|
| Method Summary | |
|---|---|
protected Object |
getCachedFeatureInfo(String name,
Object[] args,
Map cache)
|
protected boolean |
hasClosure(Object object,
String name)
|
boolean |
hasMethod(Object object,
String name,
Object[] args)
|
boolean |
hasProperty(Object object,
String name)
|
protected void |
toggleFeature(String name,
boolean found,
Map cache)
|
| Methods inherited from class groovy.lang.DelegatingMetaClass |
|---|
addMetaBeanProperty, addMetaMethod, addNewInstanceMethod, addNewStaticMethod, equals, getAttribute, getAttribute, getClassNode, getMetaMethod, getMetaMethod, getMetaMethods, getMetaProperty, getMethods, getProperties, getProperty, getProperty, getStaticMetaMethod, getStaticMetaMethod, getTheClass, hashCode, initialize, invokeConstructor, invokeMethod, invokeMethod, invokeMethod, invokeMissingMethod, invokeMissingProperty, invokeStaticMethod, isGroovyObject, isModified, pickMethod, selectConstructorAndTransformArguments, setAdaptee, setAttribute, setAttribute, setProperty, setProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Map methodInfoCache
protected Map propertyInfoCache
| Constructor Detail |
|---|
public CachingMetaClass(groovy.lang.MetaClass metaClass)
public CachingMetaClass(Class aClass)
| Method Detail |
|---|
public boolean hasMethod(Object object,
String name,
Object[] args)
protected boolean hasClosure(Object object,
String name)
protected void toggleFeature(String name,
boolean found,
Map cache)
protected Object getCachedFeatureInfo(String name,
Object[] args,
Map cache)
public boolean hasProperty(Object object,
String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||