ro.isdc.wro.extensions.processor.support.typescript
Class TypeScriptCompiler

java.lang.Object
  extended by ro.isdc.wro.extensions.processor.support.typescript.TypeScriptCompiler

public class TypeScriptCompiler
extends Object

Uses rhino to compile a TypeScript into javascript.

Since:
1.6.3
Author:
Alex Objelean

Constructor Summary
TypeScriptCompiler()
           
 
Method Summary
 String compile(String typeScript)
           
protected  InputStream getCompilerStream()
           
protected  InputStream getCompilerWrapperStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeScriptCompiler

public TypeScriptCompiler()
Method Detail

compile

public String compile(String typeScript)

getCompilerWrapperStream

protected InputStream getCompilerWrapperStream()
Returns:
the stream for the script performing actual compilation wrapper.

getCompilerStream

protected InputStream getCompilerStream()
Returns:
the stream for the script for TypeScript compiler.


Copyright © 2008-2013. All Rights Reserved.