org.bbqjs.compiler
Interface Compiler

All Known Implementing Classes:
AbstractCompiler, CSSCompiler, JavaScriptCompiler, LanguageCompiler

public interface Compiler

I am a compiler. I compile stuff.


Method Summary
 void compile(URL inputFile, String packageName, OutputStream outputStream, String[] sourceRoots)
          Writes the compiled form of the input file into the passed output stream.
 String compile(URL inputFile, String packageName, String[] sourceRoots)
          Returns a string of the compiled source of the given input file.
 

Method Detail

compile

String compile(URL inputFile,
               String packageName,
               String[] sourceRoots)
Returns a string of the compiled source of the given input file. Not terribly performant but useful sometimes.

Parameters:
inputFile -
packageName -
Returns:

compile

void compile(URL inputFile,
             String packageName,
             OutputStream outputStream,
             String[] sourceRoots)
             throws IOException
Writes the compiled form of the input file into the passed output stream.

Parameters:
inputFile -
packageName -
outputStream -
Throws:
IOException


Copyright © 2012. All Rights Reserved.