ro.isdc.wro.extensions.processor.support.coffeescript
Class CoffeeScript

java.lang.Object
  extended by ro.isdc.wro.extensions.processor.support.coffeescript.CoffeeScript

public class CoffeeScript
extends Object

CoffeeScript is a little language that compiles into JavaScript. Underneath all of those embarrassing braces and semicolons, JavaScript has always had a gorgeous object model at its heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.

The underlying implementation use the coffee-script version 1.4.0 project: ://github.com/jashkenas/coffee-script.

Since:
1.3.6
Author:
Alex Objelean

Constructor Summary
CoffeeScript()
           
 
Method Summary
 String compile(String data)
          Validates a js using jsHint and throws LinterException if the js is invalid.
protected  InputStream getCoffeeScriptAsStream()
          Override this method to use a different version of CoffeeScript.
 CoffeeScript setOptions(String... options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoffeeScript

public CoffeeScript()
Method Detail

getCoffeeScriptAsStream

protected InputStream getCoffeeScriptAsStream()
Override this method to use a different version of CoffeeScript. This method is useful for upgrading coffeeScript processor independently of wro4j.

Returns:
The stream of the CoffeeScript.

compile

public String compile(String data)
Validates a js using jsHint and throws LinterException if the js is invalid. If no exception is thrown, the js is valid.

Parameters:
data - js content to process.

setOptions

public CoffeeScript setOptions(String... options)
Parameters:
options - the options to set


Copyright © 2008-2013. All Rights Reserved.