protected class ExpandoMetaClass.ExpandoMetaProperty extends GroovyObjectSupport
Example:
metaClass.myMethod << { String args -> }
This allows callbacks to the ExpandoMetaClass for registering appending methods
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isStatic |
protected String |
propertyName |
| Modifier | Constructor and Description |
|---|---|
protected |
ExpandoMetaClass.ExpandoMetaProperty(String name) |
protected |
ExpandoMetaClass.ExpandoMetaProperty(String name,
boolean isStatic) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(String property)
Retrieves a property value.
|
String |
getPropertyName() |
boolean |
isStatic() |
Object |
leftShift(Object arg) |
void |
setProperty(String property,
Object newValue)
Sets the given property to the new value.
|
getMetaClass, invokeMethod, setMetaClassprotected String propertyName
protected boolean isStatic
protected ExpandoMetaClass.ExpandoMetaProperty(String name)
protected ExpandoMetaClass.ExpandoMetaProperty(String name, boolean isStatic)
public String getPropertyName()
public boolean isStatic()
public Object getProperty(String property)
GroovyObjectgetProperty in interface GroovyObjectgetProperty in class GroovyObjectSupportproperty - the name of the property of interestpublic void setProperty(String property, Object newValue)
GroovyObjectsetProperty in interface GroovyObjectsetProperty in class GroovyObjectSupportproperty - the name of the property of interestnewValue - the new value for the property