public class CoffeeScript extends Object
1.4.0 project: ://github.com/jashkenas/coffee-script.| Constructor and Description |
|---|
CoffeeScript() |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected InputStream getCoffeeScriptAsStream()
public String compile(String data)
LinterException if the js is invalid. If no exception is thrown, the
js is valid.data - js content to process.public CoffeeScript setOptions(String... options)
options - the options to setCopyright © 2008-2013. All Rights Reserved.