public class Proxy extends GroovyObjectSupport
Constructor and Description |
---|
Proxy() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAdaptee() |
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object args)
Invokes the given method.
|
java.util.Iterator |
iterator() |
void |
setAdaptee(java.lang.Object adaptee) |
Proxy |
wrap(java.lang.Object adaptee)
This method is for convenience.
|
getMetaClass, getProperty, setMetaClass, setProperty
public Proxy wrap(java.lang.Object adaptee)
public java.lang.Object getAdaptee()
public void setAdaptee(java.lang.Object adaptee)
public java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
GroovyObject
invokeMethod
in interface GroovyObject
invokeMethod
in class GroovyObjectSupport
name
- the name of the method to callargs
- the arguments to use for the method callpublic java.util.Iterator iterator()