org.plovr
Class CoffeeFile

java.lang.Object
  extended by org.plovr.AbstractJsInput
      extended by org.plovr.LocalFileJsInput
          extended by org.plovr.CoffeeFile
All Implemented Interfaces:
SourceFile.Generator, JsInput

public class CoffeeFile
extends LocalFileJsInput

CoffeeFile represents a CoffeeScript source file on disk.

Author:
bolinfest@gmail.com (Michael Bolin)

Field Summary
 
Fields inherited from class org.plovr.AbstractJsInput
provides, requires
 
Method Summary
 String getCode()
           
 
Methods inherited from class org.plovr.LocalFileJsInput
equals, getSource, hashCode, hasInputChanged
 
Methods inherited from class org.plovr.AbstractJsInput
getName, getProvides, getRequires, getTemplateCode, isSoyFile, processProvidesAndRequires, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getCode

public String getCode()
               throws PlovrCoffeeScriptCompilerException
Specified by:
getCode in interface SourceFile.Generator
Specified by:
getCode in interface JsInput
Specified by:
getCode in class AbstractJsInput
Returns:
JavaScript code
Throws:
PlovrCoffeeScriptCompilerException - if the CoffeeScript compiler encounters an error trying to compile the source