public class CoffeeScript extends Object
| 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() throws IOException
IOExceptionpublic 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-2016. All Rights Reserved.