org.bbqjs.compiler.language
Class LanguageCompiler

java.lang.Object
  extended by org.bbqjs.compiler.AbstractCompiler<CompilableLanguageFile>
      extended by org.bbqjs.compiler.language.LanguageCompiler
All Implemented Interfaces:
Compiler

public class LanguageCompiler
extends AbstractCompiler<CompilableLanguageFile>


Field Summary
 
Fields inherited from class org.bbqjs.compiler.AbstractCompiler
libraries
 
Constructor Summary
LanguageCompiler(Locale locale, Locale defaultLocale, String[] libraries)
           
 
Method Summary
 void compile(URL javaScriptInputFile, String packageName, OutputStream outputStream, String[] sourceRoots)
          Writes the compiled form of the input file into the passed output stream.
 Properties createProperties(URL javaScriptInputFile, String[] sourceRoots)
           
static void setLogger(org.slf4j.Logger log)
           
 
Methods inherited from class org.bbqjs.compiler.AbstractCompiler
afterWrittenLibrariesToOutputStream, compile, compileToOutputStream, parseInputFile, writeToOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguageCompiler

public LanguageCompiler(Locale locale,
                        Locale defaultLocale,
                        String[] libraries)
Method Detail

setLogger

public static void setLogger(org.slf4j.Logger log)

compile

public void compile(URL javaScriptInputFile,
                    String packageName,
                    OutputStream outputStream,
                    String[] sourceRoots)
             throws IOException
Description copied from interface: Compiler
Writes the compiled form of the input file into the passed output stream.

Throws:
IOException

createProperties

public Properties createProperties(URL javaScriptInputFile,
                                   String[] sourceRoots)
                            throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.