Class AbstractCallSite
java.lang.Object
org.codehaus.groovy.runtime.callsite.AbstractCallSite
- All Implemented Interfaces:
CallSite
- Direct Known Subclasses:
DummyCallSite
,GetEffectivePogoFieldSite
,GetEffectivePojoPropertySite
,MetaClassSite
,NullCallSite
,PerInstancePojoMetaClassSite
,PogoGetPropertySite
,PogoInterceptableSite
,PogoMetaClassGetPropertySite
,PojoMetaClassGetPropertySite
Base class for all call sites.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CallSiteArray
protected final int
protected final String
-
Constructor Summary
ConstructorDescriptionAbstractCallSite
(CallSite prev) AbstractCallSite
(CallSiteArray array, int index, String name) -
Method Summary
Modifier and TypeMethodDescriptionacceptGetProperty
(Object receiver) acceptGroovyObjectGetProperty
(Object receiver) callConstructor
(Object receiver) callConstructor
(Object receiver, Object arg1) callConstructor
(Object receiver, Object[] args) callConstructor
(Object receiver, Object arg1, Object arg2) callConstructor
(Object receiver, Object arg1, Object arg2, Object arg3) callCurrent
(GroovyObject receiver) callCurrent
(GroovyObject receiver, Object arg1) callCurrent
(GroovyObject receiver, Object[] args) callCurrent
(GroovyObject receiver, Object arg1, Object arg2) callCurrent
(GroovyObject receiver, Object arg1, Object arg2, Object arg3) callCurrent
(GroovyObject receiver, Object arg1, Object arg2, Object arg3, Object arg4) callGetProperty
(Object receiver) final Object
callGetPropertySafe
(Object receiver) callGroovyObjectGetProperty
(Object receiver) final Object
callGroovyObjectGetPropertySafe
(Object receiver) final Object
final Object
final Object
final Object
final Object
callStatic
(Class receiver) callStatic
(Class receiver, Object arg1) callStatic
(Class receiver, Object[] args) callStatic
(Class receiver, Object arg1, Object arg2) callStatic
(Class receiver, Object arg1, Object arg2, Object arg3) protected final CallSite
createGetPropertySite
(Object receiver) protected final CallSite
createGroovyObjectGetPropertySite
(Object receiver) getArray()
int
getIndex()
getName()
getProperty
(Object receiver)
-
Field Details
-
index
protected final int index -
name
-
array
-
-
Constructor Details
-
AbstractCallSite
-
AbstractCallSite
-
-
Method Details
-
getIndex
public int getIndex() -
getArray
-
getName
-
callSafe
-
callSafe
-
callSafe
-
callSafe
-
callSafe
-
callSafe
-
call
-
call
-
call
-
call
-
call
-
call
-
callCurrent
- Specified by:
callCurrent
in interfaceCallSite
- Throws:
Throwable
-
callCurrent
- Specified by:
callCurrent
in interfaceCallSite
- Throws:
Throwable
-
callCurrent
- Specified by:
callCurrent
in interfaceCallSite
- Throws:
Throwable
-
callCurrent
- Specified by:
callCurrent
in interfaceCallSite
- Throws:
Throwable
-
callCurrent
public Object callCurrent(GroovyObject receiver, Object arg1, Object arg2, Object arg3) throws Throwable - Specified by:
callCurrent
in interfaceCallSite
- Throws:
Throwable
-
callCurrent
public Object callCurrent(GroovyObject receiver, Object arg1, Object arg2, Object arg3, Object arg4) throws Throwable - Specified by:
callCurrent
in interfaceCallSite
- Throws:
Throwable
-
callStatic
- Specified by:
callStatic
in interfaceCallSite
- Throws:
Throwable
-
callStatic
- Specified by:
callStatic
in interfaceCallSite
- Throws:
Throwable
-
callStatic
- Specified by:
callStatic
in interfaceCallSite
- Throws:
Throwable
-
callStatic
- Specified by:
callStatic
in interfaceCallSite
- Throws:
Throwable
-
callStatic
- Specified by:
callStatic
in interfaceCallSite
- Throws:
Throwable
-
callStatic
public Object callStatic(Class receiver, Object arg1, Object arg2, Object arg3, Object arg4) throws Throwable - Specified by:
callStatic
in interfaceCallSite
- Throws:
Throwable
-
callConstructor
- Specified by:
callConstructor
in interfaceCallSite
- Throws:
Throwable
-
callConstructor
- Specified by:
callConstructor
in interfaceCallSite
- Throws:
Throwable
-
callConstructor
- Specified by:
callConstructor
in interfaceCallSite
- Throws:
Throwable
-
callConstructor
- Specified by:
callConstructor
in interfaceCallSite
- Throws:
Throwable
-
callConstructor
public Object callConstructor(Object receiver, Object arg1, Object arg2, Object arg3) throws Throwable - Specified by:
callConstructor
in interfaceCallSite
- Throws:
Throwable
-
callConstructor
public Object callConstructor(Object receiver, Object arg1, Object arg2, Object arg3, Object arg4) throws Throwable - Specified by:
callConstructor
in interfaceCallSite
- Throws:
Throwable
-
callGetProperty
- Specified by:
callGetProperty
in interfaceCallSite
- Throws:
Throwable
-
callGroovyObjectGetProperty
- Specified by:
callGroovyObjectGetProperty
in interfaceCallSite
- Throws:
Throwable
-
acceptGetProperty
-
acceptGroovyObjectGetProperty
-
createGetPropertySite
-
createGroovyObjectGetPropertySite
-
getProperty
- Specified by:
getProperty
in interfaceCallSite
- Throws:
Throwable
-
callGetPropertySafe
- Specified by:
callGetPropertySafe
in interfaceCallSite
- Throws:
Throwable
-
callGroovyObjectGetPropertySafe
- Specified by:
callGroovyObjectGetPropertySafe
in interfaceCallSite
- Throws:
Throwable
-