|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.runtime.Invoker
public class Invoker
A helper class to invoke methods or extract properties on arbitrary Java objects dynamically. All methodes in this calss are deprecated!
Field Summary | |
---|---|
protected static Object[] |
EMPTY_ARGUMENTS
Deprecated. |
protected static Class[] |
EMPTY_TYPES
Deprecated. |
Constructor Summary | |
---|---|
Invoker()
Deprecated. |
Method Summary | |
---|---|
Object[] |
asArray(Object arguments)
Deprecated. |
Object[] |
asUnwrappedArray(Object arguments)
Deprecated. |
Object |
getAttribute(Object object,
String attribute)
Deprecated. |
MetaClass |
getMetaClass(Object object)
Deprecated. |
MetaClassRegistry |
getMetaRegistry()
Deprecated. |
Closure |
getMethodPointer(Object object,
String methodName)
Deprecated. |
Object |
getProperty(Object object,
String property)
Deprecated. |
Object |
invokeConstructorOf(Class type,
Object arguments)
Deprecated. |
Object |
invokeMethod(Object object,
String methodName,
Object arguments)
Deprecated. |
Object |
invokeStaticMethod(Class type,
String method,
Object arguments)
Deprecated. |
Object |
invokeSuperMethod(Object object,
String methodName,
Object arguments)
Deprecated. |
void |
removeMetaClass(Class clazz)
Deprecated. |
void |
setAttribute(Object object,
String attribute,
Object newValue)
Deprecated. |
void |
setProperty(Object object,
String property,
Object newValue)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Object[] EMPTY_ARGUMENTS
protected static final Class[] EMPTY_TYPES
Constructor Detail |
---|
public Invoker()
Method Detail |
---|
public MetaClassRegistry getMetaRegistry()
public MetaClass getMetaClass(Object object)
public Object invokeMethod(Object object, String methodName, Object arguments)
public Object invokeSuperMethod(Object object, String methodName, Object arguments)
public Object invokeStaticMethod(Class type, String method, Object arguments)
public Object invokeConstructorOf(Class type, Object arguments)
public Object[] asArray(Object arguments)
public Object[] asUnwrappedArray(Object arguments)
public Object getProperty(Object object, String property)
public void setProperty(Object object, String property, Object newValue)
public Object getAttribute(Object object, String attribute)
public void setAttribute(Object object, String attribute, Object newValue)
public Closure getMethodPointer(Object object, String methodName)
public void removeMetaClass(Class clazz)
|
Copyright © 2003-2008 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |