GroovyObject
public class Proxy extends GroovyObjectSupport
Constructor | Description |
---|---|
Proxy() |
Modifier and Type | Method | Description |
---|---|---|
Object |
getAdaptee() |
|
Object |
invokeMethod(String name,
Object args) |
Invokes the given method.
|
Iterator |
iterator() |
|
void |
setAdaptee(Object adaptee) |
|
Proxy |
wrap(Object adaptee) |
This method is for convenience.
|
getMetaClass, getProperty, setMetaClass, setProperty
public Proxy wrap(Object adaptee)
public Object getAdaptee()
public void setAdaptee(Object adaptee)
public Object invokeMethod(String name, 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 Iterator iterator()