Web Site

org.codehaus.janino.samples
Class DemoBase

java.lang.Object
  extended byorg.codehaus.janino.samples.DemoBase
Direct Known Subclasses:
ClassBodyDemo, ExpressionDemo, ScriptDemo

public class DemoBase
extends Object

Common base class for the "...Demo" classes that demostrate Janino.


Constructor Summary
protected DemoBase()
           
 
Method Summary
static Object createObject(Class type, String value)
           
static String[] explode(String s)
           
static Class stringToType(String s)
           
static Class[] stringToTypes(String s)
           
static String toString(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemoBase

protected DemoBase()
Method Detail

createObject

public static Object createObject(Class type,
                                  String value)
                           throws NoSuchMethodException,
                                  InstantiationException,
                                  InvocationTargetException,
                                  IllegalAccessException
Throws:
NoSuchMethodException
InstantiationException
InvocationTargetException
IllegalAccessException

explode

public static String[] explode(String s)

stringToType

public static Class stringToType(String s)

stringToTypes

public static Class[] stringToTypes(String s)

toString

public static String toString(Object o)

Web Site