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, setMetaClass
protected 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)
GroovyObject
getProperty
in interface GroovyObject
getProperty
in class GroovyObjectSupport
property
- the name of the property of interestpublic void setProperty(String property, Object newValue)
GroovyObject
setProperty
in interface GroovyObject
setProperty
in class GroovyObjectSupport
property
- the name of the property of interestnewValue
- the new value for the property