groovy.util
Class FactoryInterceptorMetaClass
java.lang.Object
groovy.lang.DelegatingMetaClass
groovy.util.FactoryInterceptorMetaClass
- All Implemented Interfaces:
- GroovyObject, MetaClass, MetaObjectProtocol, MutableMetaClass
class FactoryInterceptorMetaClass
- extends DelegatingMetaClass
Method Summary |
java.lang.Object |
invokeMethod(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.Object |
invokeMethod(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. |
Methods inherited from class groovy.lang.DelegatingMetaClass |
addMetaBeanProperty, addMetaMethod, addNewInstanceMethod, addNewStaticMethod, equals, getAdaptee, getAttribute, getAttribute, getClassNode, getMetaClass, getMetaMethod, getMetaMethod, getMetaMethods, getMetaProperty, getMethods, getProperties, getProperty, getProperty, getProperty, getStaticMetaMethod, getStaticMetaMethod, getTheClass, hashCode, hasProperty, initialize, invokeConstructor, invokeMethod, invokeMethod, invokeMissingMethod, invokeMissingProperty, invokeStaticMethod, isGroovyObject, isModified, pickMethod, respondsTo, respondsTo, selectConstructorAndTransformArguments, setAdaptee, setAttribute, setAttribute, setMetaClass, setProperty, setProperty, setProperty, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
factory
FactoryBuilderSupport factory
FactoryInterceptorMetaClass
public FactoryInterceptorMetaClass(MetaClass delegate,
FactoryBuilderSupport factory)
invokeMethod
public java.lang.Object invokeMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.Object arguments)
- Description copied from interface:
MetaObjectProtocol
Invokes a method on the given object, with the given name and single argument.
- Specified by:
invokeMethod
in interface MetaObjectProtocol
- Overrides:
invokeMethod
in class DelegatingMetaClass
- Parameters:
object
- The Object to invoke the method onmethodName
- The name of the methodarguments
- 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[])
invokeMethod
public java.lang.Object invokeMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.Object[] arguments)
- Description copied from interface:
MetaObjectProtocol
Invokes 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:
invokeMethod
in interface MetaObjectProtocol
- Overrides:
invokeMethod
in class DelegatingMetaClass
- Parameters:
object
- The instance which the method is invoked onmethodName
- The name of the methodarguments
- The arguments to the method
- Returns:
- The return value of the method which is null if the return type is void
- See Also:
MissingMethodException
Copyright © ${year} The Codehaus. All Rights Reserved.