[Java] Class GroovyObjectSupport
- groovy.lang.GroovyObjectSupport
- All Implemented Interfaces and Traits:
- GroovyObject
public abstract class GroovyObjectSupport extends Object
A useful base class for Java objects wishing to be Groovy objects
Properties Summary
Type | Name and description |
---|---|
MetaClass |
metaClass |
Object |
property |
Constructor Summary
Constructor and description |
---|
GroovyObjectSupport
() |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
MetaClass |
getMetaClass() | |
Object |
getProperty(String property) | |
Object |
invokeMethod(String name, Object args) | |
void |
setMetaClass(MetaClass metaClass) | |
void |
setProperty(String property, Object newValue) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Property Detail
MetaClass metaClass
Object property
Constructor Detail
public GroovyObjectSupport()
Method Detail
public MetaClass getMetaClass()
public Object getProperty(String property)
public Object invokeMethod(String name, Object args)
public void setMetaClass(MetaClass metaClass)
public void setProperty(String property, Object newValue)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/groovy/lang/GroovyObjectSupport.html