GroovyInterceptable
, GroovyResultSet
AntBuilder
, Attribute
, BaseMarkupBuilder
, BatchingPreparedStatementWrapper
, BatchingStatementWrapper
, Binding
, BindingProxy
, BooleanWrapper
, Builder
, Builder.Built
, BuilderSupport
, ByteWrapper
, CharWrapper
, Closure
, ComposedClosure
, ConfigObject
, CurriedClosure
, DelegatingMetaClass
, DOMBuilder
, DoubleWrapper
, Expando
, ExpandoMetaClass
, ExpandoMetaClass.ExpandoMetaConstructor
, ExpandoMetaClass.ExpandoMetaProperty
, FactoryBuilderSupport
, FilteredAttributes
, FilteredNodeChildren
, FloatWrapper
, GPathResult
, GroovyLog
, GroovyMBean
, GroovyObjectSupport
, GroovyObjectWrapper
, GroovyResultSetExtension
, GroovyRowResult
, GroovyShell
, GString
, GStringImpl
, HandleMetaClass
, IntWrapper
, IteratorClosureAdapter
, LongWrapper
, MarkupBuilder
, MessageSource
, MethodClosure
, MixedInMetaClass
, NamespaceBuilderSupport
, NoChildren
, NodeBuilder
, NodeChild
, NonEmptySequence
, NullObject
, ObjectGraphBuilder
, OwnedMetaClass
, PojoWrapper
, Proxy
, Reference
, ResultSetMetaDataWrapper
, SAXBuilder
, Script
, ScriptReference
, Sequence
, ServletBinding
, ShortWrapper
, Wrapper
public interface GroovyObject
Modifier and Type | Method | Description |
---|---|---|
MetaClass |
getMetaClass() |
Returns the metaclass for a given class.
|
java.lang.Object |
getProperty(java.lang.String propertyName) |
Retrieves a property value.
|
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object args) |
Invokes the given method.
|
void |
setMetaClass(MetaClass metaClass) |
Allows the MetaClass to be replaced with a derived implementation.
|
void |
setProperty(java.lang.String propertyName,
java.lang.Object newValue) |
Sets the given property to the new value.
|
java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
name
- the name of the method to callargs
- the arguments to use for the method calljava.lang.Object getProperty(java.lang.String propertyName)
propertyName
- the name of the property of interestvoid setProperty(java.lang.String propertyName, java.lang.Object newValue)
propertyName
- the name of the property of interestnewValue
- the new value for the propertyMetaClass getMetaClass()
void setMetaClass(MetaClass metaClass)
metaClass
- the new metaclass