org.codehaus.groovy.runtime.metaclass
Class MixedInMetaClass
java.lang.Object
groovy.lang.DelegatingMetaClass
org.codehaus.groovy.runtime.metaclass.OwnedMetaClass
org.codehaus.groovy.runtime.metaclass.MixedInMetaClass
- All Implemented Interfaces:
- GroovyObject, MetaClass, MetaObjectProtocol, MutableMetaClass
public class MixedInMetaClass
- extends OwnedMetaClass
- Author:
- Alex Tkachman
Methods inherited from class org.codehaus.groovy.runtime.metaclass.OwnedMetaClass |
equals, getAttribute, getAttribute, getClassNode, getMetaMethod, getMetaMethod, getMetaMethods, getMetaProperty, getMethods, getProperties, getProperty, getProperty, getStaticMetaMethod, getStaticMetaMethod, getTheClass, hashCode, hasProperty, invokeConstructor, invokeMethod, invokeMethod, invokeMissingMethod, invokeMissingProperty, invokeStaticMethod, isGroovyObject, pickMethod, respondsTo, respondsTo, selectConstructorAndTransformArguments, setAttribute, setAttribute, setProperty, setProperty, toString |
Methods inherited from class groovy.lang.DelegatingMetaClass |
addMetaBeanProperty, addMetaMethod, addNewInstanceMethod, addNewStaticMethod, getAdaptee, getMetaClass, getProperty, initialize, invokeMethod, isModified, setAdaptee, setMetaClass, setProperty |
MixedInMetaClass
public MixedInMetaClass(Object instance,
Object owner)
getOwner
protected Object getOwner()
- Specified by:
getOwner
in class OwnedMetaClass
getOwnerMetaClass
protected MetaClass getOwnerMetaClass(Object owner)
- Specified by:
getOwnerMetaClass
in class OwnedMetaClass
invokeMethod
public Object invokeMethod(Class sender,
Object receiver,
String methodName,
Object[] arguments,
boolean isCallToSuper,
boolean fromInsideClass)
- Description copied from interface:
MetaClass
Invokes 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:
invokeMethod
in interface MetaClass
- Overrides:
invokeMethod
in class OwnedMetaClass
- Parameters:
sender
- The java.lang.Class instance that invoked the methodreceiver
- The object which the method was invoked onmethodName
- The name of the methodarguments
- The arguments to the methodisCallToSuper
- Whether the method is a call to a super class methodfromInsideClass
- Whether the call was invoked from the inside or the outside of the class
- Returns:
- The return value of the method