public class PropertyToStringAdapter
extends groovy.lang.GroovyObjectSupport
| Constructor and Description |
|---|
PropertyToStringAdapter() |
| Modifier and Type | Method and Description |
|---|---|
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<String,Object> |
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) |
void |
setProperty(String property,
Object newValue) |
String |
toString()
This allows toString to be overridden by a closure field method attached to the expando
object.
|
public Map<String,Object> getProperties()
public List getMetaPropertyValues()
public Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class groovy.lang.GroovyObjectSupportpublic void setProperty(String property, Object newValue)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class groovy.lang.GroovyObjectSupportpublic Object invokeMethod(String name, Object args)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class groovy.lang.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()
Copyright © 2019. All rights reserved.