public static class ConstructorSite.NoParamSiteInnerClass
extends ConstructorSite.ConstructorSiteNoUnwrapNoCoerce
Constructor site that, after the inherited checkCall(Object, Object[])
passes, invokes the cached constructor with only args[0] and
then applies args[1] as a property map. Those constructor
arguments are neither unwrapped nor coerced. Otherwise it falls back
to the default constructor call.
| Fields inherited from class | Fields |
|---|---|
class MetaClassSite |
metaClass |
class AbstractCallSite |
array, index, name |
| Constructor and description |
|---|
NoParamSiteInnerClass(CallSite site, MetaClassImpl metaClass, CachedConstructor constructor, Class[] params)Delegates to ConstructorSiteNoUnwrapNoCoerce, recording the same meta-class version. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public final Object |
callConstructor(Object receiver, Object[] args)When checkCall(Object, Object[]) passes, calls CachedConstructor.invoke with a one-element array holding args[0], then casts args[1] to
Map and passes it to MetaClassImpl.setProperties.
|
Delegates to ConstructorSiteNoUnwrapNoCoerce, recording the same meta-class version.
When checkCall(Object, Object[]) passes, calls
CachedConstructor.invoke with a one-element
array holding args[0], then casts args[1] to
Map and passes it to MetaClassImpl.setProperties.
Those constructor arguments are neither unwrapped nor coerced. A
GroovyRuntimeException from setting properties is rethrown
via ScriptBytecodeAdapter.unwrap.
Otherwise falls back to
CallSiteArray.defaultCallConstructor.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.