| Package | Description |
|---|---|
| org.apache.shindig.gadgets.js | |
| org.apache.shindig.gadgets.rewrite.js |
| Modifier and Type | Method and Description |
|---|---|
static JsContent |
JsContent.fromFeature(String content,
String source,
FeatureRegistry.FeatureBundle bundle,
FeatureResource resource) |
static JsContent |
JsContent.fromFeature(String content,
String source,
FeatureRegistry.FeatureBundle bundle,
FeatureResource resource,
boolean noCompile) |
static JsContent |
JsContent.fromText(String content,
String source) |
static JsContent |
JsContent.fromText(String content,
String source,
boolean noCompile) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<JsContent> |
JsResponse.getAllJsContent()
Returns an iterator starting at the beginning of all JS code in the response.
|
protected List<JsContent> |
BaseSurfaceJsProcessor.getSurfaceJsContents(FeatureRegistry featureRegistry,
String featureName) |
| Modifier and Type | Method and Description |
|---|---|
JsResponseBuilder |
JsResponseBuilder.appendJs(JsContent jsContent)
Appends more JS to the response.
|
JsResponseBuilder |
JsResponseBuilder.insertJsAt(int index,
JsContent jsContent)
Insert a JS at a specific index.
|
JsResponseBuilder |
JsResponseBuilder.prependJs(JsContent jsContent)
Prepend a JS to the response.
|
| Modifier and Type | Method and Description |
|---|---|
JsResponseBuilder |
JsResponseBuilder.appendAllJs(Iterable<JsContent> jsBundle)
Helper to append a bunch of JS.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<JsContent> |
JsCompiler.getJsContent(JsUriManager.JsUri jsUri,
FeatureRegistry.FeatureBundle bundle)
Pre-process feature JS.
|
Iterable<JsContent> |
DefaultJsCompiler.getJsContent(JsUriManager.JsUri jsUri,
FeatureRegistry.FeatureBundle bundle) |
Iterable<JsContent> |
ClosureJsCompiler.getJsContent(JsUriManager.JsUri jsUri,
FeatureRegistry.FeatureBundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
protected CompileResult |
ClosureJsCompiler.doCompileContent(JsContent content,
com.google.javascript.jscomp.CompilerOptions options,
List<com.google.javascript.jscomp.SourceFile> externs) |
protected Future<CompileResult> |
ClosureJsCompiler.getCompileFuture(String cacheKey,
JsContent content,
JsUriManager.JsUri jsUri,
String externs) |
| Modifier and Type | Method and Description |
|---|---|
JsResponse |
JsCompiler.compile(JsUriManager.JsUri jsUri,
Iterable<JsContent> content,
String externs)
Compiles the provided code with the provided list of external symbols.
|
JsResponse |
DefaultJsCompiler.compile(JsUriManager.JsUri jsUri,
Iterable<JsContent> content,
String externs) |
JsResponse |
ClosureJsCompiler.compile(JsUriManager.JsUri jsUri,
Iterable<JsContent> content,
String externs) |
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.