|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.MetaClassImpl
class MetaClassImpl extends Object
Allows methods to be dynamically added to existing classes at runtime
Field Summary | |
---|---|
protected static String |
INVOKE_METHOD_METHOD
|
protected static String |
METHOD_MISSING
|
protected static String |
PROPERTY_MISSING
|
protected static String |
STATIC_METHOD_MISSING
|
protected static String |
STATIC_PROPERTY_MISSING
|
protected MetaMethod |
getPropertyMethod
|
protected MetaMethod |
invokeMethodMethod
|
protected boolean |
isGroovyObject
|
protected boolean |
isMap
|
protected MetaMethodIndex |
metaMethodIndex
|
protected MetaClassRegistry |
registry
|
protected MetaMethod |
setPropertyMethod
|
protected CachedClass |
theCachedClass
|
protected Class |
theClass
|
Constructor Summary | |
MetaClassImpl(Class theClass, MetaMethod[] add)
|
|
MetaClassImpl(Class theClass)
|
|
MetaClassImpl(MetaClassRegistry registry, Class theClass, MetaMethod[] add)
|
|
MetaClassImpl(MetaClassRegistry registry, Class theClass)
|
Method Summary | |
---|---|
MetaMethod
|
getMetaMethod(String name, Object[] argTypes)
|
MetaProperty
|
getMetaProperty(String name)
|
MetaMethod
|
getStaticMetaMethod(String name, Object[] argTypes)
|
protected LinkedList
|
getSuperClasses()
|
CachedClass
|
getTheCachedClass()
|
Class
|
getTheClass()
|
MetaProperty
|
hasProperty(Object obj, String name)
|
boolean
|
isGroovyObject()
|
List
|
respondsTo(Object obj, String name, Object[] argTypes)
|
List
|
respondsTo(Object obj, String name)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
protected static final String INVOKE_METHOD_METHOD
protected static final String METHOD_MISSING
protected static final String PROPERTY_MISSING
protected static final String STATIC_METHOD_MISSING
protected static final String STATIC_PROPERTY_MISSING
protected MetaMethod getPropertyMethod
protected MetaMethod invokeMethodMethod
protected final boolean isGroovyObject
protected final boolean isMap
protected final MetaMethodIndex metaMethodIndex
protected MetaClassRegistry registry
protected MetaMethod setPropertyMethod
protected final CachedClass theCachedClass
protected final Class theClass
Constructor Detail |
---|
public MetaClassImpl(Class theClass, MetaMethod[] add)
public MetaClassImpl(Class theClass)
public MetaClassImpl(MetaClassRegistry registry, Class theClass, MetaMethod[] add)
public MetaClassImpl(MetaClassRegistry registry, Class theClass)
Method Detail |
---|
public MetaMethod getMetaMethod(String name, Object[] argTypes)
public MetaProperty getMetaProperty(String name)
public MetaMethod getStaticMetaMethod(String name, Object[] argTypes)
protected LinkedList getSuperClasses()
public final CachedClass getTheCachedClass()
public Class getTheClass()
public MetaProperty hasProperty(Object obj, String name)
public boolean isGroovyObject()
public List respondsTo(Object obj, String name, Object[] argTypes)
public List respondsTo(Object obj, String name)
Copyright © 2003-2009 The Codehaus. All rights reserved.