Class Wrapper
java.lang.Object
org.codehaus.groovy.runtime.wrappers.Wrapper
- All Implemented Interfaces:
- GroovyObject
- Direct Known Subclasses:
- GroovyObjectWrapper,- PojoWrapper
public abstract class Wrapper extends java.lang.Object implements GroovyObject
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.ClassconstrainedType
- 
Constructor SummaryConstructors Constructor Description Wrapper(java.lang.Class constrainedType)
- 
Method SummaryModifier and Type Method Description protected abstract MetaClassgetDelegatedMetaClass()MetaClassgetMetaClass()Returns the metaclass for a given class.java.lang.ClassgetType()protected abstract java.lang.ObjectgetWrapped()abstract java.lang.Objectunwrap()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObjectgetProperty, invokeMethod, setMetaClass, setProperty
- 
Field Details- 
constrainedTypeprotected final java.lang.Class constrainedType
 
- 
- 
Constructor Details- 
Wrapperpublic Wrapper(java.lang.Class constrainedType)
 
- 
- 
Method Details- 
getMetaClassDescription copied from interface:GroovyObjectReturns the metaclass for a given class.- Specified by:
- getMetaClassin interface- GroovyObject
- Returns:
- the metaClass of this instance
 
- 
getTypepublic java.lang.Class getType()
- 
unwrappublic abstract java.lang.Object unwrap()
- 
getWrappedprotected abstract java.lang.Object getWrapped()
- 
getDelegatedMetaClass
 
-