org.plovr
Class SoyFile
java.lang.Object
org.plovr.AbstractJsInput
org.plovr.LocalFileJsInput
org.plovr.SoyFile
- All Implemented Interfaces:
- SourceFile.Generator, JsInput
public class SoyFile
- extends LocalFileJsInput
JsSourceFile
represents a Soy file.
- Author:
- bolinfest@gmail.com (Michael Bolin)
getCode
public String getCode()
- Specified by:
getCode
in interface SourceFile.Generator
- Specified by:
getCode
in interface JsInput
- Specified by:
getCode
in class AbstractJsInput
- Returns:
- JavaScript code
isSoyFile
public boolean isSoyFile()
- Specified by:
isSoyFile
in interface JsInput
- Overrides:
isSoyFile
in class AbstractJsInput
- Returns:
- a boolean indicating whether this is a Soy file. If true, then
JsInput.getTemplateCode()
must return the original Soy content.
getTemplateCode
public String getTemplateCode()
- Specified by:
getTemplateCode
in interface JsInput
- Overrides:
getTemplateCode
in class AbstractJsInput
- Returns:
- the underlying template code if this is a Soy file
createInjector
public static com.google.inject.Injector createInjector(List<String> pluginModuleNames)