public class ConstructorMetaClassSite
extends MetaClassSite
Call site that invokes a constructor through a MetaClass when the receiver is that meta class's class.
| Fields inherited from class | Fields |
|---|---|
class MetaClassSite |
metaClass |
class AbstractCallSite |
array, index, name |
| Constructor and description |
|---|
ConstructorMetaClassSite(CallSite site, MetaClass metaClass)Copies the parent site and the meta class used for construction. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
callConstructor(Object receiver, Object[] args)Invokes the meta class constructor when receiver is that meta
class's class. |
| Methods inherited from class | Name |
|---|---|
class AbstractCallSite |
acceptGetProperty, acceptGroovyObjectGetProperty, call, call, call, call, call, call, callConstructor, 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 |
Invokes the meta class constructor when receiver is that meta
class's class. A GroovyRuntimeException is unwrapped. Any other
receiver is handled by the default constructor call.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.