[Java] Class GroovyObjectWrapper
- org.codehaus.groovy.runtime.wrappers.GroovyObjectWrapper
- Authors:
- John Wilson
Field Summary
Modifiers | Name | Description |
---|---|---|
protected GroovyObject | wrapped |
Fields inherited from class | Fields |
---|---|
class Wrapper | constrainedType |
Constructor Summary
Constructor and description |
---|
GroovyObjectWrapper
(GroovyObject wrapped, Class constrainedType) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
protected MetaClass |
getDelegatedMetaClass() | |
Object |
getProperty(String property) | |
protected Object |
getWrapped() | |
Object |
invokeMethod(String name, Object args) | |
void |
setMetaClass(MetaClass metaClass) | |
void |
setProperty(String property, Object newValue) | |
Object |
unwrap() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Wrapper | getDelegatedMetaClass, getMetaClass, getType, getWrapped, unwrap |
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail
protected final GroovyObject wrapped
Constructor Detail
public GroovyObjectWrapper(GroovyObject wrapped, Class constrainedType)
Method Detail
protected MetaClass getDelegatedMetaClass()
public Object getProperty(String property)
protected Object getWrapped()
public Object invokeMethod(String name, Object args)
public void setMetaClass(MetaClass metaClass)
public void setProperty(String property, Object newValue)
public Object unwrap()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/runtime/wrappers/GroovyObjectWrapper.html