public class DefaultJsCompiler extends Object implements JsCompiler
| Constructor and Description |
|---|
DefaultJsCompiler() |
| Modifier and Type | Method and Description |
|---|---|
JsResponse |
compile(JsUriManager.JsUri jsUri,
Iterable<JsContent> content,
String externs)
Compiles the provided code with the provided list of external symbols.
|
protected String |
getFeatureContent(JsUriManager.JsUri jsUri,
FeatureResource resource) |
Iterable<JsContent> |
getJsContent(JsUriManager.JsUri jsUri,
FeatureRegistry.FeatureBundle bundle)
Pre-process feature JS.
|
public Iterable<JsContent> getJsContent(JsUriManager.JsUri jsUri, FeatureRegistry.FeatureBundle bundle)
JsCompilergetJsContent in interface JsCompilerjsUri - The JS uri making the request.bundle - The feature bundle.public JsResponse compile(JsUriManager.JsUri jsUri, Iterable<JsContent> content, String externs)
JsCompilercompile in interface JsCompilerjsUri - The JS uri making the request.content - The raw/pre-processed JS code.externs - The externs.protected String getFeatureContent(JsUriManager.JsUri jsUri, FeatureResource resource)
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.