| Fields inherited from class | Fields |
|---|---|
class Wrapper |
constrainedType |
| Constructor and description |
|---|
PojoWrapper(Object wrapped, Class constrainedType)Creates a wrapper for a plain Java object constrained to the supplied type. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected MetaClass |
getDelegatedMetaClass()* Returns the meta class that should handle GroovyObject operations for the * wrapped value. * *
|
|
public Object |
getProperty(String property)Returns a property value from the wrapped object using the delegated meta class. |
|
protected Object |
getWrapped()* Returns the object used as the delegation target for meta-class-based * operations. * *
|
|
public Object |
invokeMethod(String methodName, Object arguments)Invokes a method on the wrapped object using the delegated meta class. |
|
public void |
setMetaClass(MetaClass metaClass)Sets the meta class used to dispatch GroovyObject operations for the wrapped object. |
|
public void |
setProperty(String property, Object newValue)Sets a property on the wrapped object using the delegated meta class. |
|
public Object |
unwrap()* Returns the wrapped value. * *
|
| Methods inherited from class | Name |
|---|---|
class Wrapper |
getDelegatedMetaClass, getMetaClass, getType, getWrapped, unwrap |
The meta class used to dispatch GroovyObject operations to the wrapped object.
The wrapped plain Java object.
* Returns the meta class that should handle GroovyObject operations for the * wrapped value. * *
Returns a property value from the wrapped object using the delegated meta class.
property - the property name* Returns the object used as the delegation target for meta-class-based * operations. * *
Invokes a method on the wrapped object using the delegated meta class.
methodName - the method namearguments - the invocation argumentsSets the meta class used to dispatch GroovyObject operations for the wrapped object.
metaClass - the meta class to delegate toSets a property on the wrapped object using the delegated meta class.
property - the property namenewValue - the new property value* Returns the wrapped value. * *
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.