All Downloads are FREE. Search and download functionalities are using the official Maven repository.

alice.util.proxyGenerator.GeneratingJavaFileManager Maven / Gradle / Ivy

The newest version!
package alice.util.proxyGenerator;
import javax.tools.*;
import java.io.*;

class GeneratingJavaFileManager extends ForwardingJavaFileManager {
	
  private final GeneratedClassFile gcf;

  public GeneratingJavaFileManager(StandardJavaFileManager sjfm, GeneratedClassFile gcf) {
    super(sjfm);
    this.gcf = gcf;
  }

  public JavaFileObject getJavaFileForOutput( Location location, String className, JavaFileObject.Kind kind, 
		                                      FileObject sibling) throws IOException {
    return gcf;
  }
}
  

/*
  This class forces the JavaCompiler to use the GeneratedClassFile's output stream for writing the class
*/
 




© 2015 - 2024 Weber Informatics LLC | Privacy Policy