| Package | Description |
|---|---|
| com.google.template.soy.basicdirectives |
Plugin package for basic print directives.
|
| com.google.template.soy.coredirectives |
Plugin package for core print directives.
|
| 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) |
JsExpr |
InsertWordBreaksDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
BasicEscapeDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
InsertWordBreaksDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
BasicEscapeDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
InsertWordBreaksDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
IdDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
EscapeHtmlDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
NoAutoescapeDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
IdDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
EscapeHtmlDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
NoAutoescapeDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
IdDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
EscapeHtmlDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
JsExpr |
NoAutoescapeDirective.applyForJsSrc(JsExpr value,
List<JsExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
protected JsExpr |
TranslateToJsExprVisitor.visitAndOpNode(OperatorNodes.AndOpNode node) |
protected JsExpr |
TranslateToJsExprVisitor.visitDataAccessNode(DataAccessNode node) |
protected JsExpr |
TranslateToJsExprVisitor.visitExprRootNode(ExprRootNode node) |
protected JsExpr |
TranslateToJsExprVisitor.visitFunctionNode(FunctionNode node) |
protected JsExpr |
TranslateToJsExprVisitor.visitGlobalNode(GlobalNode node) |
protected JsExpr |
TranslateToJsExprVisitor.visitListLiteralNode(ListLiteralNode node) |
protected JsExpr |
TranslateToJsExprVisitor.visitMapLiteralNode(MapLiteralNode node) |
protected JsExpr |
TranslateToJsExprVisitor.visitNotOpNode(OperatorNodes.NotOpNode node) |
protected JsExpr |
TranslateToJsExprVisitor.visitOperatorNode(ExprNode.OperatorNode node) |
protected JsExpr |
TranslateToJsExprVisitor.visitOrOpNode(OperatorNodes.OrOpNode node) |
protected JsExpr |
TranslateToJsExprVisitor.visitPrimitiveNode(ExprNode.PrimitiveNode node) |
protected JsExpr |
TranslateToJsExprVisitor.visitStringNode(StringNode node) |
protected JsExpr |
TranslateToJsExprVisitor.visitVarRefNode(VarRefNode node) |
| Modifier and Type | Method and Description |
|---|---|
List<JsExpr> |
GenJsExprsVisitor.exec(SoyNode node) |
List<JsExpr> |
GenJsExprsVisitor.execOnChildren(SoyNode.ParentSoyNode<?> node)
Executes this visitor on the children of the given node, without visiting the given node
itself.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
TranslateToJsExprVisitor.genMaybeProtect(JsExpr expr,
int minSafePrecedence) |
| Modifier and Type | Method and Description |
|---|---|
TranslateToJsExprVisitor |
TranslateToJsExprVisitor.TranslateToJsExprVisitorFactory.create(Deque<Map<String,JsExpr>> localVarTranslations) |
GenJsExprsVisitor |
GenJsExprsVisitor.GenJsExprsVisitorFactory.create(Deque<Map<String,JsExpr>> localVarTranslations) |
| 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.concatJsExprsForceString(List<? extends JsExpr> jsExprs)
Builds a JS expression which is the string concatenation of individual expressions.
|
static JsExpr |
SoyJsCodeUtils.genJsExprUsingSoySyntax(Operator op,
List<JsExpr> operandJsExprs)
Generates a JS expression for the given operator and operands assuming that the JS expression
for the operator uses the same syntax format as the Soy operator.
|
static JsExpr |
SoyJsCodeUtils.genJsExprUsingSoySyntaxWithNewToken(Operator op,
List<JsExpr> operandJsExprs,
String newToken)
Generates a JS expression for the given operator and operands assuming that the JS expression
for the operator uses the same syntax format as the Soy operator, with the exception that the
JS operator uses a different token (e.g.
|
static JsExpr |
JsExprUtils.maybeWrapAsSanitizedContent(SanitizedContent.ContentKind contentKind,
JsExpr jsExpr)
Wraps with the proper SanitizedContent constructor if contentKind is non-null.
|
static JsExpr |
JsExprUtils.maybeWrapAsSanitizedContentForInternalBlocks(SanitizedContent.ContentKind contentKind,
JsExpr jsExpr)
Wraps with the proper SanitizedContent constructor if contentKind is non-null, in a way
specific for let/param blocks.
|
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 JsExpr |
JsExprUtils.maybeWrapAsSanitizedContent(SanitizedContent.ContentKind contentKind,
JsExpr jsExpr)
Wraps with the proper SanitizedContent constructor if contentKind is non-null.
|
static JsExpr |
JsExprUtils.maybeWrapAsSanitizedContentForInternalBlocks(SanitizedContent.ContentKind contentKind,
JsExpr jsExpr)
Wraps with the proper SanitizedContent constructor if contentKind is non-null, in a way
specific for let/param blocks.
|
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.
|
static JsExpr |
JsExprUtils.concatJsExprsForceString(List<? extends JsExpr> jsExprs)
Builds a JS expression which is the string concatenation of individual expressions.
|
static JsExpr |
SoyJsCodeUtils.genJsExprUsingSoySyntax(Operator op,
List<JsExpr> operandJsExprs)
Generates a JS expression for the given operator and operands assuming that the JS expression
for the operator uses the same syntax format as the Soy operator.
|
static JsExpr |
SoyJsCodeUtils.genJsExprUsingSoySyntaxWithNewToken(Operator op,
List<JsExpr> operandJsExprs,
String newToken)
Generates a JS expression for the given operator and operands assuming that the JS expression
for the operator uses the same syntax format as the Soy operator, with the exception that the
JS operator uses a different token (e.g.
|