Interface GroovyObject
- All Known Subinterfaces:
GroovyInterceptable, GroovyResultSet
- All Known Implementing Classes:
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
The interface implemented by all Groovy objects.
Especially handy for using Groovy objects when in the Java world.
- Version:
- $Revision$
- Author:
- James Strachan
-
Method Summary
Modifier and TypeMethodDescriptionReturns the metaclass for a given class.getProperty(String propertyName) Retrieves a property value.invokeMethod(String name, Object args) Invokes the given method.voidsetMetaClass(MetaClass metaClass) Allows the MetaClass to be replaced with a derived implementation.voidsetProperty(String propertyName, Object newValue) Sets the given property to the new value.
-
Method Details
-
invokeMethod
-
getProperty
-
setProperty
-
getMetaClass
MetaClass getMetaClass()Returns the metaclass for a given class.- Returns:
- the metaClass of this instance
-
setMetaClass
Allows the MetaClass to be replaced with a derived implementation.- Parameters:
metaClass- the new metaclass
-