public class GetEffectivePojoPropertySite
extends AbstractCallSite
Call site that reads a POJO property through a cached MetaProperty while the MetaClassImpl version is unchanged and no category is active.
| Fields inherited from class | Fields |
|---|---|
class AbstractCallSite |
array, index, name |
| Constructor and description |
|---|
GetEffectivePojoPropertySite(CallSite site, MetaClassImpl metaClass, MetaProperty effective)Captures the meta class, the property to read, and the meta class version. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public final CallSite |
acceptGetProperty(Object receiver)Returns a newly created get-property site when receiver is null,
its class is not the meta class's class, the meta class version has
changed, or a category is active on the current thread. |
|
public final Object |
getProperty(Object receiver)Reads the property through the cached MetaProperty. |
| 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 |
Captures the meta class, the property to read, and the meta class version.
site - the site whose name and index are copiedmetaClass - the meta class this site was built fromeffective - the property read when the receiver still matches Returns a newly created get-property site when receiver is null,
its class is not the meta class's class, the meta class version has
changed, or a category is active on the current thread. Otherwise
returns this site.
Reads the property through the cached MetaProperty. A GroovyRuntimeException is unwrapped.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.