org.codehaus.janino.samples
Class DemoBase
java.lang.Object
org.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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DemoBase
protected DemoBase()
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)