public class GroovyObjectWrapper extends Wrapper
Modifier and Type | Field and Description |
---|---|
protected GroovyObject |
wrapped |
constrainedType, delegatingMetaClass
Constructor and Description |
---|
GroovyObjectWrapper(GroovyObject wrapped,
java.lang.Class constrainedType) |
Modifier and Type | Method and Description |
---|---|
protected MetaClass |
getDelegatedMetaClass() |
java.lang.Object |
getProperty(java.lang.String property)
Note the rest of these method will only be used post 1.0
|
protected java.lang.Object |
getWrapped() |
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object args)
Invokes the given method
|
void |
setMetaClass(MetaClass metaClass)
Allows the MetaClass to be replaced with a derived implementation
|
void |
setProperty(java.lang.String property,
java.lang.Object newValue)
Sets the given property to the new value
|
java.lang.Object |
unwrap() |
getMetaClass, getType
protected final GroovyObject wrapped
public GroovyObjectWrapper(GroovyObject wrapped, java.lang.Class constrainedType)
public java.lang.Object getProperty(java.lang.String property)
public java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
GroovyObject
public void setMetaClass(MetaClass metaClass)
GroovyObject
public void setProperty(java.lang.String property, java.lang.Object newValue)
GroovyObject
protected java.lang.Object getWrapped()
getWrapped
in class Wrapper
protected MetaClass getDelegatedMetaClass()
getDelegatedMetaClass
in class Wrapper