groovy.lang
Interface GroovyObject

All Known Implementing Classes:
GroovyObjectSupport, Sequence

public interface GroovyObject

The interface implemented by all Groovy objects which is handy for using Groovy objects when in the Java world

Version:
$Revision: 1.5 $
Author:
James Strachan

Method Summary
 MetaClass getMetaClass()
           
 Object getProperty(String property)
           
 Object invokeMethod(String name, Object args)
          Invokes the given method
 void setMetaClass(MetaClass metaClass)
          Allows the MetaClass to be replaced with a derived implementation
 void setProperty(String property, Object newValue)
          Sets the given property to the new value
 

Method Detail

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Invokes the given method


getProperty

public Object getProperty(String property)
Returns:
the given property

setProperty

public void setProperty(String property,
                        Object newValue)
Sets the given property to the new value


getMetaClass

public MetaClass getMetaClass()
Returns:
the metaClass of this instance

setMetaClass

public void setMetaClass(MetaClass metaClass)
Allows the MetaClass to be replaced with a derived implementation



Copyright © 2003-2005 The Codehaus. All Rights Reserved.