public abstract class Wrapper
extends Object
implements GroovyObject
Base class for runtime wrappers that expose a value through GroovyObject while reporting a constrained type.
| Modifiers | Name | Description |
|---|---|---|
protected Class |
constrainedType |
The constrained type the wrapped value should present to the runtime. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected abstract MetaClass |
getDelegatedMetaClass()Returns the meta class that should handle GroovyObject operations for the wrapped value. |
|
public MetaClass |
getMetaClass()Returns the MetaClass used to service GroovyObject operations for the wrapped value. |
|
public Class |
getType()Returns the constrained type associated with this wrapper. |
|
protected abstract Object |
getWrapped()Returns the object used as the delegation target for meta-class-based operations. |
|
public abstract Object |
unwrap()Returns the wrapped value. |
The constrained type the wrapped value should present to the runtime.
Creates a wrapper for values that should appear as the supplied type.
constrainedType - the type the wrapped value should reportReturns the meta class that should handle GroovyObject operations for the wrapped value.
Returns the MetaClass used to service GroovyObject operations for the wrapped value.
Returns the constrained type associated with this wrapper.
Returns the object used as the delegation target for meta-class-based operations.
Returns the wrapped value.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.