|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.util.Expando
public class Expando
Represents a dynamically expandable bean.
| Constructor Summary | |
|---|---|
Expando()
|
|
Expando(Map expandoProperties)
|
|
| Method Summary | |
|---|---|
protected Map |
createMap()
Factory method to create a new Map used to store the expando properties map |
boolean |
equals(Object obj)
This allows equals to be overridden by a closure field method attached to the expando object. |
List |
getMetaPropertyValues()
|
Map |
getProperties()
|
Object |
getProperty(String property)
|
int |
hashCode()
This allows hashCode to be overridden by a closure field method attached to the expando object. |
Object |
invokeMethod(String name,
Object args)
Invokes the given method |
void |
setProperty(String property,
Object newValue)
Sets the given property to the new value |
String |
toString()
This allows toString to be overridden by a closure field method attached to the expando object. |
| Methods inherited from class groovy.lang.GroovyObjectSupport |
|---|
getMetaClass, setMetaClass |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Expando()
public Expando(Map expandoProperties)
| Method Detail |
|---|
public Map getProperties()
public List getMetaPropertyValues()
public Object getProperty(String property)
getProperty in interface GroovyObjectgetProperty in class GroovyObjectSupport
public void setProperty(String property,
Object newValue)
GroovyObject
setProperty in interface GroovyObjectsetProperty in class GroovyObjectSupport
public Object invokeMethod(String name,
Object args)
GroovyObject
invokeMethod in interface GroovyObjectinvokeMethod in class GroovyObjectSupportpublic String toString()
toString in class ObjectObject.toString()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()protected Map createMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||