Class DelegatingMetaClass
- java.lang.Object
- 
- groovy.lang.DelegatingMetaClass
 
- 
- All Implemented Interfaces:
- GroovyObject,- MetaClass,- MetaObjectProtocol,- MutableMetaClass
 - Direct Known Subclasses:
- HandleMetaClass,- OwnedMetaClass
 
 public class DelegatingMetaClass extends java.lang.Object implements MetaClass, MutableMetaClass, GroovyObject 
- 
- 
Constructor SummaryConstructors Constructor Description DelegatingMetaClass(MetaClass delegate)DelegatingMetaClass(java.lang.Class theClass)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddMetaBeanProperty(MetaBeanProperty metaBeanProperty)Adds a new MetaBeanProperty to the MetaClassvoidaddMetaMethod(MetaMethod metaMethod)Adds a new MetaMethod to the MetaClassvoidaddNewInstanceMethod(java.lang.reflect.Method method)adds a new instance method to this MetaClass.voidaddNewStaticMethod(java.lang.reflect.Method method)adds a new static method to this MetaClass.booleanequals(java.lang.Object obj)MetaClassgetAdaptee()java.lang.ObjectgetAttribute(java.lang.Class sender, java.lang.Object receiver, java.lang.String messageName, boolean useSuper)Retrieves the value of an attribute (field).java.lang.ObjectgetAttribute(java.lang.Object object, java.lang.String attribute)Retrieves an attribute of an instance of the class returned by the getTheClass() method.ClassNodegetClassNode()Obtains a reference to the original AST for the MetaClass if it is available at runtimeMetaClassgetMetaClass()Returns the metaclass for a given class.MetaMethodgetMetaMethod(java.lang.String name, java.lang.Object[] args)Retrieves an instance MetaMethod for the given name and argument values, using the types of the argument values to establish the chosen MetaMethodjava.util.List<MetaMethod>getMetaMethods()Retrieves a list of MetaMethods held by this class.MetaPropertygetMetaProperty(java.lang.String name)Returns a MetaProperty for the given name or null if it doesn't existjava.util.List<MetaMethod>getMethods()Retrieves a list of MetaMethods held by the class.java.util.List<MetaProperty>getProperties()Retrieves a list of MetaProperty instances that the MetaClass hasjava.lang.ObjectgetProperty(java.lang.Class sender, java.lang.Object receiver, java.lang.String messageName, boolean useSuper, boolean fromInsideClass)Retrieves a property on the given receiver for the specified arguments.java.lang.ObjectgetProperty(java.lang.Object object, java.lang.String property)Retrieves a property of an instance of the class returned by the getTheClass() method.java.lang.ObjectgetProperty(java.lang.String property)Retrieves a property value.MetaMethodgetStaticMetaMethod(java.lang.String name, java.lang.Class[] argTypes)MetaMethodgetStaticMetaMethod(java.lang.String name, java.lang.Object[] args)Retrieves a static MetaMethod for the given name and argument values, using the types of the arguments to establish the chosen MetaMethodjava.lang.ClassgetTheClass()Retrieves that Java Class that the attached Meta behaviours apply tointhashCode()MetaPropertyhasProperty(java.lang.Object obj, java.lang.String name)Returns true of the implementing MetaClass has a property of the given namevoidinitialize()Complete the initialisation process.java.lang.ObjectinvokeConstructor(java.lang.Object[] arguments)Invokes a constructor for the given arguments.java.lang.ObjectinvokeMethod(java.lang.Class sender, java.lang.Object receiver, java.lang.String methodName, java.lang.Object[] arguments, boolean isCallToSuper, boolean fromInsideClass)Invokes a method on the given receiver for the specified arguments.java.lang.ObjectinvokeMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object arguments)Invokes a method on the given object, with the given name and single argument.java.lang.ObjectinvokeMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object[] arguments)Invokes a method on the given Object with the given name and arguments.java.lang.ObjectinvokeMethod(java.lang.String name, java.lang.Object args)Invokes the given method.java.lang.ObjectinvokeMissingMethod(java.lang.Object instance, java.lang.String methodName, java.lang.Object[] arguments)Attempts to invoke the methodMissing method otherwise throws a MissingMethodExceptionjava.lang.ObjectinvokeMissingProperty(java.lang.Object instance, java.lang.String propertyName, java.lang.Object optionalValue, boolean isGetter)Invokes the propertyMissing method otherwise throws a MissingPropertyExceptionjava.lang.ObjectinvokeStaticMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object[] arguments)Invokes a static method on the given Object with the given name and arguments.booleanisGroovyObject()booleanisModified()Return whether the MetaClass has been modified or notMetaMethodpickMethod(java.lang.String methodName, java.lang.Class[] arguments)Deprecated.java.util.List<MetaMethod>respondsTo(java.lang.Object obj, java.lang.String name)Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name regardless of arguments.java.util.List<MetaMethod>respondsTo(java.lang.Object obj, java.lang.String name, java.lang.Object[] argTypes)Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name and arguments types.intselectConstructorAndTransformArguments(int numberOfConstructors, java.lang.Object[] arguments)Internal method to support Groovy runtime.voidsetAdaptee(MetaClass adaptee)voidsetAttribute(java.lang.Class sender, java.lang.Object receiver, java.lang.String messageName, java.lang.Object messageValue, boolean useSuper, boolean fromInsideClass)Sets the value of an attribute (field).voidsetAttribute(java.lang.Object object, java.lang.String attribute, java.lang.Object newValue)Sets an attribute of an instance of the class returned by the getTheClass() method.voidsetMetaClass(MetaClass metaClass)Allows the MetaClass to be replaced with a derived implementation.voidsetProperty(java.lang.Class sender, java.lang.Object receiver, java.lang.String messageName, java.lang.Object messageValue, boolean useSuper, boolean fromInsideClass)Sets a property on the given receiver for the specified arguments.voidsetProperty(java.lang.Object object, java.lang.String property, java.lang.Object newValue)Sets a property of an instance of the class returned by the getTheClass() method.voidsetProperty(java.lang.String property, java.lang.Object newValue)Sets the given property to the new value.java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
delegateprotected MetaClass delegate 
 
- 
 - 
Constructor Detail- 
DelegatingMetaClasspublic DelegatingMetaClass(MetaClass delegate) 
 - 
DelegatingMetaClasspublic DelegatingMetaClass(java.lang.Class theClass) 
 
- 
 - 
Method Detail- 
isModifiedpublic boolean isModified() Description copied from interface:MutableMetaClassReturn whether the MetaClass has been modified or not- Specified by:
- isModifiedin interface- MutableMetaClass
- Returns:
- True if it has
 
 - 
addNewInstanceMethodpublic void addNewInstanceMethod(java.lang.reflect.Method method) Description copied from interface:MutableMetaClassadds a new instance method to this MetaClass. Instance methods are able to overwrite the original methods of the class. Calling this method should not be done after initialise was called.- Specified by:
- addNewInstanceMethodin interface- MutableMetaClass
- Parameters:
- method- the method to be added
 
 - 
addNewStaticMethodpublic void addNewStaticMethod(java.lang.reflect.Method method) Description copied from interface:MutableMetaClassadds a new static method to this MetaClass. This is only possible as long as initialise was not called.- Specified by:
- addNewStaticMethodin interface- MutableMetaClass
- Parameters:
- method- the method to be added
 
 - 
addMetaMethodpublic void addMetaMethod(MetaMethod metaMethod) Description copied from interface:MutableMetaClassAdds a new MetaMethod to the MetaClass- Specified by:
- addMetaMethodin interface- MutableMetaClass
- Parameters:
- metaMethod- The MetaMethod to add
 
 - 
addMetaBeanPropertypublic void addMetaBeanProperty(MetaBeanProperty metaBeanProperty) Description copied from interface:MutableMetaClassAdds a new MetaBeanProperty to the MetaClass- Specified by:
- addMetaBeanPropertyin interface- MutableMetaClass
- Parameters:
- metaBeanProperty- The MetaBeanProperty instance
 
 - 
initializepublic void initialize() Description copied from interface:MetaClassComplete the initialisation process. After this method is called no methods should be added to the meta class. Invocation of methods or access to fields/properties is forbidden unless this method is called. This method should contain any initialisation code, taking a longer time to complete. An example is the creation of the Reflector. It is suggested to synchronize this method.- Specified by:
- initializein interface- MetaClass
 
 - 
getAttributepublic java.lang.Object getAttribute(java.lang.Object object, java.lang.String attribute)Description copied from interface:MetaObjectProtocolRetrieves an attribute of an instance of the class returned by the getTheClass() method.What this means is largely down to the MetaClass implementation, however the default case would result in attempt to read a field of the instance. - Specified by:
- getAttributein interface- MetaObjectProtocol
- Parameters:
- object- An instance of the class returned by the getTheClass() method
- attribute- The name of the attribute to retrieve the value for
- Returns:
- The attribute value
- See Also:
- MetaClassImpl
 
 - 
getClassNodepublic ClassNode getClassNode() Description copied from interface:MetaClassObtains a reference to the original AST for the MetaClass if it is available at runtime- Specified by:
- getClassNodein interface- MetaClass
- Returns:
- The original AST or null if it cannot be returned
 
 - 
getMetaMethodspublic java.util.List<MetaMethod> getMetaMethods() Description copied from interface:MetaClassRetrieves a list of MetaMethods held by this class. This list includes MetaMethods added by groovy.lang.ExpandoMetaClass.- Specified by:
- getMetaMethodsin interface- MetaClass
- Returns:
- A list of MetaMethods
 
 - 
getMethodspublic java.util.List<MetaMethod> getMethods() Description copied from interface:MetaClassRetrieves a list of MetaMethods held by the class. This list does not include MetaMethods added by groovy.lang.ExpandoMetaClass.- Specified by:
- getMethodsin interface- MetaClass
- Specified by:
- getMethodsin interface- MetaObjectProtocol
- Returns:
- A list of MetaMethods
- See Also:
- MetaMethod
 
 - 
respondsTopublic java.util.List<MetaMethod> respondsTo(java.lang.Object obj, java.lang.String name, java.lang.Object[] argTypes) Description copied from interface:MetaObjectProtocolReturns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name and arguments types. Note that this method's return value is based on realised methods and does not take into account objects or classes that implement invokeMethod or methodMissing This method is "safe" in that it will always return a value and never throw an exception - Specified by:
- respondsToin interface- MetaObjectProtocol
- Parameters:
- obj- The object to inspect
- name- The name of the method of interest
- argTypes- The argument types to match against
- Returns:
- A List of MetaMethods matching the argument types which will be empty if no matching methods exist
 
 - 
respondsTopublic java.util.List<MetaMethod> respondsTo(java.lang.Object obj, java.lang.String name) Description copied from interface:MetaObjectProtocolReturns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name regardless of arguments. In other words this method will return for foo() and foo(String). Note that this method's return value is based on realised methods and does not take into account objects or classes that implement invokeMethod or methodMissing This method is "safe" in that it will always return a value and never throw an exception - Specified by:
- respondsToin interface- MetaObjectProtocol
- Parameters:
- obj- The object to inspect
- name- The name of the method of interest
- Returns:
- A List of MetaMethods which will be empty if no methods with the given name exist
 
 - 
hasPropertypublic MetaProperty hasProperty(java.lang.Object obj, java.lang.String name) Description copied from interface:MetaObjectProtocolReturns true of the implementing MetaClass has a property of the given name Note that this method will only return true for realised properties and does not take into account implementation of getProperty or propertyMissing - Specified by:
- hasPropertyin interface- MetaObjectProtocol
- Parameters:
- obj- The object to inspect
- name- The name of the property
- Returns:
- The MetaProperty or null if it doesn't exist
 
 - 
getPropertiespublic java.util.List<MetaProperty> getProperties() Description copied from interface:MetaClassRetrieves a list of MetaProperty instances that the MetaClass has- Specified by:
- getPropertiesin interface- MetaClass
- Specified by:
- getPropertiesin interface- MetaObjectProtocol
- Returns:
- A list of MetaProperty instances
- See Also:
- MetaProperty
 
 - 
getPropertypublic java.lang.Object getProperty(java.lang.Object object, java.lang.String property)Description copied from interface:MetaObjectProtocolRetrieves a property of an instance of the class returned by the getTheClass() method.What this means is largely down to the MetaClass implementation, however the default case would result in an attempt to invoke a JavaBean getter, or if no such getter exists a public field of the instance. - Specified by:
- getPropertyin interface- MetaObjectProtocol
- Parameters:
- object- An instance of the class returned by the getTheClass() method
- property- The name of the property to retrieve the value for
- Returns:
- The properties value
- See Also:
- MetaClassImpl
 
 - 
invokeConstructorpublic java.lang.Object invokeConstructor(java.lang.Object[] arguments) Description copied from interface:MetaObjectProtocolInvokes a constructor for the given arguments. The MetaClass will attempt to pick the best argument which matches the types of the objects passed within the arguments array- Specified by:
- invokeConstructorin interface- MetaObjectProtocol
- Parameters:
- arguments- The arguments to the constructor
- Returns:
- An instance of the java.lang.Class that this MetaObjectProtocol object applies to
 
 - 
invokeMethodpublic java.lang.Object invokeMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object arguments)Description copied from interface:MetaObjectProtocolInvokes a method on the given object, with the given name and single argument.- Specified by:
- invokeMethodin interface- MetaObjectProtocol
- Parameters:
- object- The Object to invoke the method on
- methodName- The name of the method
- arguments- The argument to the method
- Returns:
- The return value of the method which is null if the return type is void
- See Also:
- MetaObjectProtocol.invokeMethod(Object, String, Object[])
 
 - 
invokeMethodpublic java.lang.Object invokeMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object[] arguments)Description copied from interface:MetaObjectProtocolInvokes a method on the given Object with the given name and arguments. The MetaClass will attempt to pick the best method for the given name and arguments. If a method cannot be invoked a MissingMethodException will be thrown.- Specified by:
- invokeMethodin interface- MetaObjectProtocol
- Parameters:
- object- The instance which the method is invoked on
- methodName- The name of the method
- arguments- The arguments to the method
- Returns:
- The return value of the method which is null if the return type is void
- See Also:
- MissingMethodException
 
 - 
invokeStaticMethodpublic java.lang.Object invokeStaticMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object[] arguments)Description copied from interface:MetaObjectProtocolInvokes a static method on the given Object with the given name and arguments.The Object can either be an instance of the class that this MetaObjectProtocol instance applies to or the java.lang.Class instance itself. If a method cannot be invoked a MissingMethodException is will be thrown - Specified by:
- invokeStaticMethodin interface- MetaObjectProtocol
- Parameters:
- object- An instance of the class returned by the getTheClass() method or the class itself
- methodName- The name of the method
- arguments- The arguments to the method
- Returns:
- The return value of the method which is null if the return type is void
- See Also:
- MissingMethodException
 
 - 
setAttributepublic void setAttribute(java.lang.Object object, java.lang.String attribute, java.lang.Object newValue)Description copied from interface:MetaObjectProtocolSets an attribute of an instance of the class returned by the getTheClass() method.What this means is largely down to the MetaClass implementation, however the default case would result in an attempt to set a field of the instance. - Specified by:
- setAttributein interface- MetaObjectProtocol
- Parameters:
- object- An instance of the class returned by the getTheClass() method
- attribute- The name of the attribute to set
- newValue- The new value of the attribute
- See Also:
- MetaClassImpl
 
 - 
setPropertypublic void setProperty(java.lang.Object object, java.lang.String property, java.lang.Object newValue)Description copied from interface:MetaObjectProtocolSets a property of an instance of the class returned by the getTheClass() method.What this means is largely down to the MetaClass implementation, however the default case would result in an attempt to invoke a JavaBean setter, or if no such setter exists to set a public field of the instance. - Specified by:
- setPropertyin interface- MetaObjectProtocol
- Parameters:
- object- An instance of the class returned by the getTheClass() method
- property- The name of the property to set
- newValue- The new value of the property
- See Also:
- MetaClassImpl
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
pickMethod@Deprecated public MetaMethod pickMethod(java.lang.String methodName, java.lang.Class[] arguments) Deprecated.Description copied from interface:MetaClassSelects a method by name and argument classes. This method does not search for an exact match, it searches for a compatible method. For this the method selection mechanism is used as provided by the implementation of this MetaClass. pickMethod may or may not be used during the method selection process when invoking a method. There is no warranty for that.- Specified by:
- pickMethodin interface- MetaClass
- Parameters:
- methodName- the name of the method to pick
- arguments- the method arguments
- Returns:
- a matching MetaMethod or null
 
 - 
getAttributepublic java.lang.Object getAttribute(java.lang.Class sender, java.lang.Object receiver, java.lang.String messageName, boolean useSuper)Description copied from interface:MetaClassRetrieves the value of an attribute (field). This method is to support the Groovy runtime and not for general client API usage.- Specified by:
- getAttributein interface- MetaClass
- Parameters:
- sender- The class of the object that requested the attribute
- receiver- The instance
- messageName- The name of the attribute
- useSuper- Whether to look-up on the super class or not
- Returns:
- The attribute value
 
 - 
getPropertypublic java.lang.Object getProperty(java.lang.Class sender, java.lang.Object receiver, java.lang.String messageName, boolean useSuper, boolean fromInsideClass)Description copied from interface:MetaClassRetrieves a property on the given receiver for the specified arguments. The sender is the class that is requesting the property from the object. The MetaClass will attempt to establish the method to invoke based on the name and arguments provided. The isCallToSuper and fromInsideClass help the Groovy runtime perform optimisations on the call to go directly to the super class if necessary - Specified by:
- getPropertyin interface- MetaClass
- Parameters:
- sender- The java.lang.Class instance that requested the property
- receiver- The Object which the property is being retrieved from
- messageName- The name of the property
- useSuper- Whether the call is to a super class property
- fromInsideClass- ??
- Returns:
- The properties value
 
 - 
getMetaPropertypublic MetaProperty getMetaProperty(java.lang.String name) Description copied from interface:MetaObjectProtocolReturns a MetaProperty for the given name or null if it doesn't exist- Specified by:
- getMetaPropertyin interface- MetaObjectProtocol
- Parameters:
- name- The name of the MetaProperty
- Returns:
- A MetaProperty or null
 
 - 
getStaticMetaMethodpublic MetaMethod getStaticMetaMethod(java.lang.String name, java.lang.Object[] args) Description copied from interface:MetaObjectProtocolRetrieves a static MetaMethod for the given name and argument values, using the types of the arguments to establish the chosen MetaMethod- Specified by:
- getStaticMetaMethodin interface- MetaObjectProtocol
- Parameters:
- name- The name of the MetaMethod
- args- The argument types
- Returns:
- A MetaMethod or null if it doesn't exist
 
 - 
getStaticMetaMethodpublic MetaMethod getStaticMetaMethod(java.lang.String name, java.lang.Class[] argTypes) 
 - 
getMetaMethodpublic MetaMethod getMetaMethod(java.lang.String name, java.lang.Object[] args) Description copied from interface:MetaObjectProtocolRetrieves an instance MetaMethod for the given name and argument values, using the types of the argument values to establish the chosen MetaMethod- Specified by:
- getMetaMethodin interface- MetaObjectProtocol
- Parameters:
- name- The name of the MetaMethod
- args- Array containing - 1) the argument values (using which their types are then inferred), or 2) the corresponding argument types
- Returns:
- A MetaMethod or null if it doesn't exist
 
 - 
getTheClasspublic java.lang.Class getTheClass() Description copied from interface:MetaObjectProtocolRetrieves that Java Class that the attached Meta behaviours apply to- Specified by:
- getTheClassin interface- MetaObjectProtocol
- Returns:
- The java.lang.Class instance
 
 - 
invokeMethodpublic java.lang.Object invokeMethod(java.lang.Class sender, java.lang.Object receiver, java.lang.String methodName, java.lang.Object[] arguments, boolean isCallToSuper, boolean fromInsideClass)Description copied from interface:MetaClassInvokes a method on the given receiver for the specified arguments. The sender is the class that invoked the method on the object. The MetaClass will attempt to establish the method to invoke based on the name and arguments provided. The isCallToSuper and fromInsideClass help the Groovy runtime perform optimisations on the call to go directly to the super class if necessary - Specified by:
- invokeMethodin interface- MetaClass
- Parameters:
- sender- The java.lang.Class instance that invoked the method
- receiver- The object which the method was invoked on
- methodName- The name of the method
- arguments- The arguments to the method
- isCallToSuper- Whether the method is a call to a super class method
- fromInsideClass- Whether the call was invoked from the inside or the outside of the class
- Returns:
- The return value of the method
 
 - 
invokeMissingMethodpublic java.lang.Object invokeMissingMethod(java.lang.Object instance, java.lang.String methodName, java.lang.Object[] arguments)Description copied from interface:MetaClassAttempts to invoke the methodMissing method otherwise throws a MissingMethodException - Specified by:
- invokeMissingMethodin interface- MetaClass
- Parameters:
- instance- The instance to invoke methodMissing on
- methodName- The name of the method
- arguments- The arguments to the method
- Returns:
- The results of methodMissing or throws MissingMethodException
- See Also:
- MissingMethodException
 
 - 
invokeMissingPropertypublic java.lang.Object invokeMissingProperty(java.lang.Object instance, java.lang.String propertyName, java.lang.Object optionalValue, boolean isGetter)Description copied from interface:MetaClassInvokes the propertyMissing method otherwise throws a MissingPropertyException- Specified by:
- invokeMissingPropertyin interface- MetaClass
- Parameters:
- instance- The instance of the class
- propertyName- The name of the property
- optionalValue- The value of the property which could be null in the case of a getter
- isGetter- Whether the missing property event was the result of a getter or a setter
- Returns:
- The result of the propertyMissing method or throws MissingPropertyException
 
 - 
isGroovyObjectpublic boolean isGroovyObject() 
 - 
setAttributepublic void setAttribute(java.lang.Class sender, java.lang.Object receiver, java.lang.String messageName, java.lang.Object messageValue, boolean useSuper, boolean fromInsideClass)Description copied from interface:MetaClassSets the value of an attribute (field). This method is to support the Groovy runtime and not for general client API usage.- Specified by:
- setAttributein interface- MetaClass
- Parameters:
- sender- The class of the object that requested the attribute
- receiver- The instance
- messageName- The name of the attribute
- messageValue- The value of the attribute
- useSuper- Whether to look-up on the super class or not
- fromInsideClass- Whether the call happened from the inside or the outside of a class
 
 - 
setPropertypublic void setProperty(java.lang.Class sender, java.lang.Object receiver, java.lang.String messageName, java.lang.Object messageValue, boolean useSuper, boolean fromInsideClass)Description copied from interface:MetaClassSets a property on the given receiver for the specified arguments. The sender is the class that is setting the property from the object. The MetaClass will attempt to establish the method to invoke based on the name and arguments provided. The isCallToSuper and fromInsideClass help the Groovy runtime perform optimisations on the call to go directly to the super class if necessary - Specified by:
- setPropertyin interface- MetaClass
- Parameters:
- sender- The java.lang.Class instance that is mutating the property
- receiver- The Object which the property is being set on
- messageName- The name of the property
- messageValue- The new value of the property to set
- useSuper- Whether the call is to a super class property
- fromInsideClass- Whether the call was invoked from the inside or the outside of the class
 
 - 
selectConstructorAndTransformArgumentspublic int selectConstructorAndTransformArguments(int numberOfConstructors, java.lang.Object[] arguments)Description copied from interface:MetaClassInternal method to support Groovy runtime. Not for client usage.- Specified by:
- selectConstructorAndTransformArgumentsin interface- MetaClass
- Parameters:
- numberOfConstructors- The number of constructors
- arguments- The arguments
- Returns:
- selected index
 
 - 
setAdapteepublic void setAdaptee(MetaClass adaptee) 
 - 
getAdapteepublic MetaClass getAdaptee() 
 - 
invokeMethodpublic java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)Description copied from interface:GroovyObjectInvokes the given method.- Specified by:
- invokeMethodin interface- GroovyObject
- Parameters:
- name- the name of the method to call
- args- the arguments to use for the method call
- Returns:
- the result of invoking the method
 
 - 
getPropertypublic java.lang.Object getProperty(java.lang.String property) Description copied from interface:GroovyObjectRetrieves a property value.- Specified by:
- getPropertyin interface- GroovyObject
- Parameters:
- property- the name of the property of interest
- Returns:
- the given property
 
 - 
setPropertypublic void setProperty(java.lang.String property, java.lang.Object newValue)Description copied from interface:GroovyObjectSets the given property to the new value.- Specified by:
- setPropertyin interface- GroovyObject
- Parameters:
- property- the name of the property of interest
- newValue- the new value for the property
 
 - 
getMetaClasspublic MetaClass getMetaClass() Description copied from interface:GroovyObjectReturns the metaclass for a given class.- Specified by:
- getMetaClassin interface- GroovyObject
- Returns:
- the metaClass of this instance
 
 - 
setMetaClasspublic void setMetaClass(MetaClass metaClass) Description copied from interface:GroovyObjectAllows the MetaClass to be replaced with a derived implementation.- Specified by:
- setMetaClassin interface- GroovyObject
- Parameters:
- metaClass- the new metaclass
 
 
- 
 
-