| Package | Description |
|---|---|
| com.google.template.soy.jssrc.dsl | |
| com.google.template.soy.jssrc.internal |
| Modifier and Type | Method and Description |
|---|---|
static GoogRequire |
GoogRequire.create(String symbol)
Creates a new
GoogRequire that requires the given symbol: goog.require('symbol'); |
static GoogRequire |
GoogRequire.createWithAlias(String symbol,
String alias)
Creates a new
GoogRequire that requires the given symbol and aliases it to the given
name: var alias = goog.require('symbol'); |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableSet<GoogRequire> |
CodeChunk.RequiresCollector.IntoImmutableSet.get() |
| Modifier and Type | Method and Description |
|---|---|
void |
CodeChunk.RequiresCollector.add(GoogRequire require) |
void |
CodeChunk.RequiresCollector.IntoImmutableSet.add(GoogRequire require) |
int |
GoogRequire.compareTo(GoogRequire o) |
| Modifier and Type | Method and Description |
|---|---|
static CodeChunk.WithValue |
CodeChunk.dontTrustPrecedenceOf(JsExpr couldHaveWrongPrecedence,
Iterable<GoogRequire> requires)
Wraps a
JsExpr that could have incorrect precedence in parens. |
static CodeChunk.WithValue |
CodeChunk.fromExpr(JsExpr expr,
Iterable<GoogRequire> requires)
Creates a new code chunk from the given expression.
|
VariableDeclaration.Builder |
VariableDeclaration.Builder.setGoogRequires(Iterable<GoogRequire> requires) |
static CodeChunk |
CodeChunk.treatRawStringAsStatementLegacyOnly(String rawString,
Iterable<GoogRequire> requires)
Creates a code chunk from the given text, treating it as a series of statements rather than an
expression.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JsCodeBuilder.addGoogRequire(GoogRequire require)
Adds a
goog.require |