net.sf.groovydice.plugin
Class APIEntry
java.lang.Object
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
APIEntry
public APIEntry()
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.