|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.plovr.CoffeeScriptCompiler
public class CoffeeScriptCompiler
Adapted from JCoffeeScriptCompiler.java in https://github.com/yeungda/jcoffeescript. This class would not need to exist if com.sun.script.javascript.RhinoScriptEngine behaved reasonably in Java 6: http://stackoverflow.com/questions/7000108/is-it-possible-to- set-the-optimization-level-for-rhinoscriptengine-in-java-6
Method Summary | |
---|---|
java.lang.String |
compile(java.lang.String coffeeScriptSource,
java.lang.String sourceName)
Compiles the string of CoffeeScript code to JavaScript. |
static CoffeeScriptCompiler |
getInstance()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CoffeeScriptCompiler getInstance()
CoffeeScriptCompiler
public java.lang.String compile(java.lang.String coffeeScriptSource, java.lang.String sourceName) throws CoffeeScriptCompilerException
CoffeeScriptCompilerException
will be thrown.
The name of the input is specified so it can be included in error messages.
CoffeeScriptCompilerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |