/*
 * Created on 2004-6-21
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package workflow.script.compiler;

import java.io.PrintWriter;

import workflow.script.ScriptException;

/**
 * @author reic
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public interface ScriptCompiler
{
	/**
	 *  Where should I keep generated code including java and class?
	 */
	public void setOutputDir(String outputDir);
	/**
	 * Should we include debug information in compiled class?
	 */
	public void setClassDebugInfo(boolean classDebugInfo);
	/**
	 * What classpath should I use while compiling the java source
	 * generated from script files?
	 */
	public void setClassPath(String classPath);
	/**
	 * Java platform encoding to generate the script file class.
	 */
	public void setJavaEncoding(String javaEncoding);
	/**
	 * Set where you want the compiler output (messages) to go 
	 */
	public void setMsgOutput(PrintWriter out);

	/**
	 * Full path name of the Java source file to be compiled
	 */
	public void setJavaFilePath(String javaFilePath);

	/**
	* Execute the compiler
	* @param source - file name of the source to be compiled
	*/
	public void compile() throws ScriptException;
}
