protected class ExpandoMetaClass.ExpandoMetaProperty extends GroovyObjectSupport
<< left shift operator.
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 |
ExpandoMetaProperty(String name) |
protected |
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, setMetaClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvokeMethodprotected String propertyName
protected boolean isStatic
protected ExpandoMetaProperty(String name)
protected ExpandoMetaProperty(String name, boolean isStatic)
public String getPropertyName()
public boolean isStatic()
public Object getProperty(String property)
GroovyObjectproperty - the name of the property of interestpublic void setProperty(String property, Object newValue)
GroovyObjectproperty - the name of the property of interestnewValue - the new value for the property