public class StaticMetaClassSite
extends MetaClassSite
Call site for invoking static methods metaclass - cached method - not cached
| Fields inherited from class | Fields |
|---|---|
class MetaClassSite |
metaClass |
class AbstractCallSite |
array, index, name |
| Constructor and description |
|---|
StaticMetaClassSite(CallSite site, MetaClass metaClass)Caches metaClass and the version of its class so a later call
can tell whether that meta-class is still current. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public final Object |
call(Object receiver, Object[] args)Invokes name as a static method when receiver is the
cached class and that class's meta-class version is unchanged.
|
|
public final Object |
callStatic(Class receiver, Object[] args)Invokes name as a static method when receiver is still
the cached class and the meta-class version matches. |
| 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 name as a static method when receiver is the
cached class and that class's meta-class version is unchanged.
Otherwise uses the default call. A GroovyRuntimeException
from the static invocation is rethrown via
ScriptBytecodeAdapter.unwrap.
receiver - the class the static method is invoked onargs - the call arguments Invokes name as a static method when receiver is still
the cached class and the meta-class version matches. Otherwise uses
the default static call. A GroovyRuntimeException from the
static invocation is rethrown via
ScriptBytecodeAdapter.unwrap.
receiver - the class the static method is invoked onargs - the call argumentsCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.