public class ConstructorSite extends MetaClassSite
Modifier and Type | Class and Description |
---|---|
static class |
ConstructorSite.ConstructorSiteNoUnwrap
Call site where we know there is no need to unwrap arguments
|
static class |
ConstructorSite.ConstructorSiteNoUnwrapNoCoerce
Call site where we know there is no need neither unwrap nor coerce arguments
|
static class |
ConstructorSite.NoParamSite |
static class |
ConstructorSite.NoParamSiteInnerClass |
metaClass
array, index, name
Constructor and Description |
---|
ConstructorSite(CallSite site,
MetaClassImpl metaClass,
CachedConstructor constructor,
java.lang.Class[] params) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
callConstructor(java.lang.Object receiver,
java.lang.Object[] args) |
protected boolean |
checkCall(java.lang.Object receiver,
java.lang.Object[] args) |
static ConstructorSite |
createConstructorSite(CallSite site,
MetaClassImpl metaClass,
CachedConstructor constructor,
java.lang.Class[] params,
java.lang.Object[] args) |
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
public ConstructorSite(CallSite site, MetaClassImpl metaClass, CachedConstructor constructor, java.lang.Class[] params)
public java.lang.Object callConstructor(java.lang.Object receiver, java.lang.Object[] args) throws java.lang.Throwable
callConstructor
in interface CallSite
callConstructor
in class AbstractCallSite
java.lang.Throwable
protected final boolean checkCall(java.lang.Object receiver, java.lang.Object[] args)
public static ConstructorSite createConstructorSite(CallSite site, MetaClassImpl metaClass, CachedConstructor constructor, java.lang.Class[] params, java.lang.Object[] args)