|
||||||||||
| 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(java.util.Map expandoProperties)
|
|
| Method Summary | |
|---|---|
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. |
| 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(java.util.Map expandoProperties)
| Method Detail |
|---|
public java.util.Map getProperties()
public java.util.List getMetaPropertyValues()
public java.lang.Object getProperty(java.lang.String property)
getProperty in interface GroovyObjectgetProperty in class GroovyObjectSupport
public void setProperty(java.lang.String property,
java.lang.Object newValue)
GroovyObject
setProperty in interface GroovyObjectsetProperty in class GroovyObjectSupport
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
GroovyObject
invokeMethod 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||