[Java] Class PojoWrapper
- org.codehaus.groovy.runtime.wrappers.PojoWrapper
public class PojoWrapper extends Wrapper
Field Summary
| Modifiers | Name | Description |
|---|---|---|
protected MetaClass | delegate | |
protected Object | wrapped |
| Fields inherited from class | Fields |
|---|---|
class Wrapper | constrainedType |
Constructor Summary
| Constructor and description |
|---|
PojoWrapper
(Object wrapped, Class constrainedType) |
Methods Summary
| Type Params | Return Type | Name and description |
|---|---|---|
protected MetaClass |
getDelegatedMetaClass() | |
public Object |
getProperty(String property) | |
protected Object |
getWrapped() | |
public Object |
invokeMethod(String methodName, Object arguments) | |
public void |
setMetaClass(MetaClass metaClass) | |
public void |
setProperty(String property, Object newValue) | |
public Object |
unwrap() |
Inherited Methods Summary
| Methods inherited from class | Name |
|---|---|
class Wrapper | getDelegatedMetaClass, getMetaClass, getType, getWrapped, unwrap |
Field Detail
protected MetaClass delegate
protected final Object wrapped
Constructor Detail
public PojoWrapper(Object wrapped, Class constrainedType)
Method Detail
protected MetaClass getDelegatedMetaClass()
public Object getProperty(String property)
protected Object getWrapped()
public Object invokeMethod(String methodName, Object arguments)
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/3.0.7/html/gapi/org/codehaus/groovy/runtime/wrappers/PojoWrapper.html