public class MetaClassImpl extends Object implements MetaClass, MutableMetaClass
Allows methods to be dynamically added to existing classes at runtime
| Modifiers | Name | Description | 
|---|---|---|
| static Object[] | EMPTY_ARGUMENTS | |
| 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 and description | 
|---|
| MetaClassImpl(Class theClass, MetaMethod[] add)Constructor | 
| MetaClassImpl(Class theClass)Constructor that sets the methods to null | 
| MetaClassImpl(MetaClassRegistry registry, Class theClass, MetaMethod[] add)Constructor with registry | 
| MetaClassImpl(MetaClassRegistry registry, Class theClass)Constructor with registry setting methods to null | 
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | public MetaMethod | getMetaMethod(String name, Object[] argTypes)
 | 
|  | public MetaProperty | getMetaProperty(String name)
 | 
|  | public MetaClassRegistry | getRegistry()Returns the registry for this metaclass | 
|  | public MetaMethod | getStaticMetaMethod(String name, Object[] argTypes) | 
|  | protected LinkedList<CachedClass> | getSuperClasses() | 
|  | public final CachedClass | getTheCachedClass()Returns the cached class for this metaclass | 
|  | public Class | getTheClass()Returns the class this metaclass represents. | 
|  | public MetaProperty | hasProperty(Object obj, String name)
 | 
|  | public boolean | isGroovyObject()Indicates if the represented class is an instance of the GroovyObject class. | 
|  | public void | methodNameAction(Class<?> clazz, Cache entry) | 
|  | public List<MetaMethod> | respondsTo(Object obj, String name, Object[] argTypes)
 | 
|  | public List<MetaMethod> | respondsTo(Object obj, String name)
 | 
|  | public boolean | skipClass(Class<?> clazz) | 
Constructor
theClass -  The class this is the metaclass foradd -       The methods for this classConstructor that sets the methods to null
theClass -  The class this is the metaclass forConstructor with registry
registry -  The metaclass registry for this MetaClasstheClass -  The classadd -       The methodsConstructor with registry setting methods to null
registry -  The metaclass registry for this MetaClasstheClass -  The class
Returns the registry for this metaclass
Returns the cached class for this metaclass
Indicates if the represented class is an instance of the GroovyObject class.
Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.