net.sf.groovydice
Class GroovyDice

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

public class GroovyDice
extends Object
implements groovy.lang.GroovyObject

Groovy Dice configuration context. This class contains references to other important objects, like the plugin manager, the dynamic API and the random number generator.

Since:
1.0
Version:
3
Author:
Daniel F. Martins

Constructor Summary
GroovyDice()
          This constructor register the builtin plugins.
 
Method Summary
 GroovyDiceAPI getApi()
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getNumberGenerator()
           
 PluginManager getPluginManager()
           
 Object getProperty(String name)
           
 void initialize()
          Initialize the Groovy Dice engine.
 Object invokeMethod(String name, Object args)
           
 void registerBuiltInPlugins()
          Register the built-in Groovy Dice plugins.
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setNumberGenerator(Object value)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyDice

public GroovyDice()
This constructor register the builtin plugins.

Method Detail

getNumberGenerator

public Object getNumberGenerator()

setNumberGenerator

public void setNumberGenerator(Object value)

getPluginManager

public final PluginManager getPluginManager()

getApi

public final GroovyDiceAPI getApi()

initialize

public void initialize()
Initialize the Groovy Dice engine.


registerBuiltInPlugins

public void registerBuiltInPlugins()
Register the built-in Groovy Dice plugins.


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.