openjava.ojc
Class DynamicJavaCompiler

java.lang.Object
  |
  +--openjava.ojc.DynamicJavaCompiler
All Implemented Interfaces:
JavaCompiler

public class DynamicJavaCompiler
extends Object
implements JavaCompiler

DynamicJavaCompiler implements the JavaCompiler interface by calling DynamicJava.

DynamicJava runs faster than a regular java compiler, does not necessarily generate temporary files, and can run inside a sandbox. But there are a few issues:

Version. To build and run this class, you will need to download DynamicJava 1.1.4 or later and include ${djava.home}/lib/dynamicjava.jar on your class path.


Nested Class Summary
private static class DynamicJavaCompiler.DynamicJavaCompilerArgs
           
 
Field Summary
private  DynamicJavaCompiler.DynamicJavaCompilerArgs args
           
private  TreeInterpreter interpreter
           
 
Constructor Summary
DynamicJavaCompiler()
           
 
Method Summary
 void compile()
           
 JavaCompilerArgs getArgs()
           
 ClassLoader getClassLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

args

private DynamicJavaCompiler.DynamicJavaCompilerArgs args

interpreter

private TreeInterpreter interpreter
Constructor Detail

DynamicJavaCompiler

public DynamicJavaCompiler()
Method Detail

getArgs

public JavaCompilerArgs getArgs()
Specified by:
getArgs in interface JavaCompiler

compile

public void compile()
Specified by:
compile in interface JavaCompiler

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface JavaCompiler

SourceForge.net_Logo