[Java] Class ConstructorSite
- org.codehaus.groovy.runtime.callsite.ConstructorSite
Nested Class Summary
Modifiers | Name | 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 |
Fields inherited from class | Fields |
---|---|
class MetaClassSite | metaClass |
class AbstractCallSite | array, index, name |
Constructor Summary
Constructor and description |
---|
ConstructorSite
(CallSite site, MetaClassImpl metaClass, CachedConstructor constructor, Class[] params) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
Object |
callConstructor(Object receiver, Object[] args) | |
protected boolean |
checkCall(Object receiver, Object[] args) | |
static ConstructorSite |
createConstructorSite(CallSite site, MetaClassImpl metaClass, CachedConstructor constructor, Class[] params, Object[] args) |
Inherited Methods Summary
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 |
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public ConstructorSite(CallSite site, MetaClassImpl metaClass, CachedConstructor constructor, Class[] params)
Method Detail
public Object callConstructor(Object receiver, Object[] args)
protected final boolean checkCall(Object receiver, Object[] args)
public static ConstructorSite createConstructorSite(CallSite site, MetaClassImpl metaClass, CachedConstructor constructor, Class[] params, Object[] args)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/runtime/callsite/ConstructorSite.html