|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.util.SourceCompiler
public class SourceCompiler
This class allows to convert source code to a class. It uses one class loader per class.
| Constructor Summary | |
|---|---|
SourceCompiler()
|
|
| Method Summary | |
|---|---|
java.lang.Class<?> |
getClass(java.lang.String packageAndClassName)
Get the class object for the given name. |
java.lang.reflect.Method |
getMethod(java.lang.String className)
Get the first public static method of the given class. |
void |
setSource(java.lang.String className,
java.lang.String source)
Set the source code for the specified class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceCompiler()
| Method Detail |
|---|
public void setSource(java.lang.String className,
java.lang.String source)
className - the class namesource - the source code
public java.lang.Class<?> getClass(java.lang.String packageAndClassName)
throws java.lang.ClassNotFoundException
packageAndClassName - the class name
java.lang.ClassNotFoundException
public java.lang.reflect.Method getMethod(java.lang.String className)
throws java.lang.ClassNotFoundException
className - the class name
java.lang.ClassNotFoundException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||