public class Expando extends GroovyObjectSupport
| Constructor and Description |
|---|
Expando() |
Expando(java.util.Map expandoProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map |
createMap()
Factory method to create a new Map used to store the expando properties map
|
boolean |
equals(java.lang.Object obj)
This allows equals to be overridden by a closure field method attached
to the expando object.
|
java.util.List |
getMetaPropertyValues() |
java.util.Map |
getProperties() |
java.lang.Object |
getProperty(java.lang.String property) |
int |
hashCode()
This allows hashCode to be overridden by a closure field method attached
to the expando object.
|
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object args)
Invokes the given method
|
void |
setProperty(java.lang.String property,
java.lang.Object newValue)
Sets the given property to the new value
|
java.lang.String |
toString()
This allows toString to be overridden by a closure field method attached
to the expando object.
|
getMetaClass, setMetaClasspublic java.util.Map getProperties()
public java.util.List getMetaPropertyValues()
public java.lang.Object getProperty(java.lang.String property)
getProperty in interface GroovyObjectgetProperty in class GroovyObjectSupportpublic void setProperty(java.lang.String property,
java.lang.Object newValue)
GroovyObjectsetProperty in interface GroovyObjectsetProperty in class GroovyObjectSupportpublic java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
GroovyObjectinvokeMethod in interface GroovyObjectinvokeMethod in class GroovyObjectSupportpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()protected java.util.Map createMap()