public class SourceCompiler extends Object
| Constructor and Description |
|---|
SourceCompiler() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getClass(String packageAndClassName)
Get the class object for the given name.
|
Method |
getMethod(String className)
Get the first public static method of the given class.
|
void |
setSource(String className,
String source)
Set the source code for the specified class.
|
public void setSource(String className, String source)
className - the class namesource - the source codepublic Class<?> getClass(String packageAndClassName) throws ClassNotFoundException
packageAndClassName - the class nameClassNotFoundExceptionpublic Method getMethod(String className) throws ClassNotFoundException
className - the class nameClassNotFoundExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.