net.sf.groovydice.plugin
Class APIEntry

java.lang.Object
  extended by net.sf.groovydice.plugin.APIEntry
All Implemented Interfaces:
groovy.lang.GroovyObject

public class APIEntry
extends Object
implements groovy.lang.GroovyObject

Groovy Dice allows the users to extend and modify the default API by providing plugins. When a plugin adds a method to the API, this new method is represented by a APIEntry object.

Since:
1.3
Version:
1
Author:
Daniel F. Martins

Constructor Summary
APIEntry()
           
 
Method Summary
 Class getClazz()
           
 groovy.lang.Closure getLogic()
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getName()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 void setClazz(Class value)
           
 void setLogic(groovy.lang.Closure value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setName(Object value)
           
 void setProperty(String name, Object value)
           
 String toString()
          String representation of this entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

APIEntry

public APIEntry()
Method Detail

getName

public Object getName()

setName

public void setName(Object value)

getClazz

public Class getClazz()

setClazz

public void setClazz(Class value)

getLogic

public groovy.lang.Closure getLogic()

setLogic

public void setLogic(groovy.lang.Closure value)

toString

public String toString()
String representation of this entry.

Overrides:
toString in class Object
Returns:
Method name, class and whether this entry is dynamic.

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2008-2010 Daniel F. Martins. All Rights Reserved.