| Package | Description |
|---|---|
| com.google.template.soy.basicdirectives |
Plugin package for basic print directives.
|
| com.google.template.soy.basicfunctions |
Plugin package for basic functions.
|
| com.google.template.soy.coredirectives |
Plugin package for core print directives.
|
| com.google.template.soy.jssrc.dsl | |
| com.google.template.soy.jssrc.internal | |
| com.google.template.soy.jssrc.restricted |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
BasicEscapeDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
BasicEscapeDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
BasicEscapeDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
FloorFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
RoundFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
DebugSoyTemplateInfoFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
AugmentMapFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
LegacyObjectMapToMapFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
MinFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
CeilingFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
ParseFloatFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
MapToLegacyObjectMapFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
FloatFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
MapKeysFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
LengthFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
RangeFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
KeysFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
MaxFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
RandomIntFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
ParseIntFunction.computeForJsSrc(List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
EscapeHtmlDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
IdDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
NoAutoescapeDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
EscapeHtmlDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
IdDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
NoAutoescapeDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
EscapeHtmlDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
IdDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
NoAutoescapeDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
CodeChunk.assertExpr()
Temporary method to ease migration to the CodeChunk DSL.
|
JsExpr |
CodeChunk.assertExprAndCollectRequires(CodeChunk.RequiresCollector collector)
Temporary method to ease migration to the CodeChunk DSL.
|
static JsExpr |
SoyJsPluginUtils.genJsExprUsingSoySyntax(Operator op,
List<JsExpr> operandJsExprs)
Generates a JS expression for the given operator and operands.
|
abstract JsExpr |
CodeChunk.WithValue.singleExprOrName()
If this chunk can be represented as a single expression, returns that expression.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
static JsExpr |
SoyJsPluginUtils.genJsExprUsingSoySyntax(Operator op,
List<JsExpr> operandJsExprs)
Generates a JS expression for the given operator and operands.
|
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
VeLogFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
HasMetadataFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
VeLogJsSrcLoggingFunction.computeForJsSrc(List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
VeLogFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
HasMetadataFunction.computeForJsSrc(List<JsExpr> args) |
JsExpr |
VeLogJsSrcLoggingFunction.computeForJsSrc(List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
SoyJsSrcPrintDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args)
Applies this directive on the given string value.
|
JsExpr |
SoyJsSrcFunction.computeForJsSrc(List<JsExpr> args)
Computes this function on the given arguments for the JS Source backend.
|
static JsExpr |
JsExprUtils.concatJsExprs(List<? extends JsExpr> jsExprs)
Builds one JS expression that computes the concatenation of the given JS expressions.
|
static JsExpr |
JsExprUtils.maybeWrapAsSanitizedContent(SanitizedContent.ContentKind contentKind,
JsExpr jsExpr)
Deprecated.
This method is not safe to use without a security review, please migrate away from
it.
|
static JsExpr |
JsExprUtils.toString(JsExpr expr) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
SoyJsSrcPrintDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args)
Applies this directive on the given string value.
|
static boolean |
JsExprUtils.isStringLiteral(JsExpr jsExpr) |
static JsExpr |
JsExprUtils.maybeWrapAsSanitizedContent(SanitizedContent.ContentKind contentKind,
JsExpr jsExpr)
Deprecated.
This method is not safe to use without a security review, please migrate away from
it.
|
static JsExpr |
JsExprUtils.toString(JsExpr expr) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
SoyJsSrcPrintDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args)
Applies this directive on the given string value.
|
JsExpr |
SoyJsSrcFunction.computeForJsSrc(List<JsExpr> args)
Computes this function on the given arguments for the JS Source backend.
|
static JsExpr |
JsExprUtils.concatJsExprs(List<? extends JsExpr> jsExprs)
Builds one JS expression that computes the concatenation of the given JS expressions.
|