public class PogoMetaClassGetPropertySite
extends AbstractCallSite
Call site that reads a property through a GroovyObject's MetaClass while that meta class is still the one captured here.
| Fields inherited from class | Fields |
|---|---|
class AbstractCallSite |
array, index, name |
| Constructor and description |
|---|
PogoMetaClassGetPropertySite(CallSite parent, MetaClass metaClass)Copies the parent site and remembers the meta class used for property reads. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public final CallSite |
acceptGetProperty(Object receiver)Returns a newly created get-property site when receiver is not a
GroovyObject or its meta class is not the one captured here.
|
|
public final CallSite |
acceptGroovyObjectGetProperty(Object receiver)Returns a newly created Groovy-object get-property site when receiver is not a GroovyObject or its meta class is not
the one captured here. |
|
public final Object |
getProperty(Object receiver)Reads this site's property through the captured meta class. |
| 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 |
Returns a newly created get-property site when receiver is not a
GroovyObject or its meta class is not the one captured here.
Otherwise returns this site.
Returns a newly created Groovy-object get-property site when
receiver is not a GroovyObject or its meta class is not
the one captured here. Otherwise returns this site.
Reads this site's property through the captured meta class. A GroovyRuntimeException is unwrapped.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.