Class ConstructorSite.ConstructorSiteNoUnwrap
java.lang.Object
org.codehaus.groovy.runtime.callsite.AbstractCallSite
org.codehaus.groovy.runtime.callsite.MetaClassSite
org.codehaus.groovy.runtime.callsite.ConstructorSite
org.codehaus.groovy.runtime.callsite.ConstructorSite.ConstructorSiteNoUnwrap
- All Implemented Interfaces:
CallSite
- Enclosing class:
- ConstructorSite
Call site where we know there is no need to unwrap arguments
-
Nested Class Summary
Nested classes/interfaces inherited from class org.codehaus.groovy.runtime.callsite.ConstructorSite
ConstructorSite.ConstructorSiteNoUnwrap, ConstructorSite.ConstructorSiteNoUnwrapNoCoerce, ConstructorSite.NoParamSite, ConstructorSite.NoParamSiteInnerClass -
Field Summary
Fields inherited from class org.codehaus.groovy.runtime.callsite.MetaClassSite
metaClassFields inherited from class org.codehaus.groovy.runtime.callsite.AbstractCallSite
array, index, name -
Constructor Summary
ConstructorsConstructorDescriptionConstructorSiteNoUnwrap(CallSite site, MetaClassImpl metaClass, CachedConstructor constructor, Class[] params) Delegates toConstructorSite, recording the same meta-class version. -
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectcallConstructor(Object receiver, Object[] args) WhenConstructorSite.checkCall(Object, Object[])passes, callsCachedConstructor.doConstructorInvoke(Object[]), which coerces, and skipsMetaClassHelper.unwrap(Object[]).Methods inherited from class org.codehaus.groovy.runtime.callsite.ConstructorSite
checkCall, createConstructorSiteMethods inherited from class org.codehaus.groovy.runtime.callsite.AbstractCallSite
acceptGetProperty, acceptGroovyObjectGetProperty, call, call, call, call, call, call, callConstructor, callConstructor, callConstructor, callConstructor, callConstructor, callCurrent, callCurrent, callCurrent, callCurrent, callCurrent, callCurrent, callGetProperty, callGetPropertySafe, callGroovyObjectGetProperty, callGroovyObjectGetPropertySafe, callSafe, callSafe, callSafe, callSafe, callSafe, callSafe, callStatic, callStatic, callStatic, callStatic, callStatic, callStatic, createGetPropertySite, createGroovyObjectGetPropertySite, getArray, getIndex, getName, getProperty
-
Constructor Details
-
ConstructorSiteNoUnwrap
public ConstructorSiteNoUnwrap(CallSite site, MetaClassImpl metaClass, CachedConstructor constructor, Class[] params) Delegates toConstructorSite, recording the same meta-class version.
-
-
Method Details
-
callConstructor
WhenConstructorSite.checkCall(Object, Object[])passes, callsCachedConstructor.doConstructorInvoke(Object[]), which coerces, and skipsMetaClassHelper.unwrap(Object[]). AGroovyRuntimeExceptionis rethrown viaScriptBytecodeAdapter.unwrap(GroovyRuntimeException). Otherwise falls back toCallSiteArray.defaultCallConstructor(CallSite, Object, Object[]).- Specified by:
callConstructorin interfaceCallSite- Overrides:
callConstructorin classConstructorSite- Parameters:
receiver- the constructor's owner, as supplied by the callerargs- the constructor arguments, in order- Returns:
- the constructed object
- Throws:
Throwable- when construction fails
-