| 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.pysrc.internal | |
| com.google.template.soy.pysrc.restricted |
| Modifier and Type | Method and Description |
|---|---|
PyExpr |
BasicEscapeDirective.applyForPySrc(PyExpr value,
List<PyExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
PyExpr |
BasicEscapeDirective.applyForPySrc(PyExpr value,
List<PyExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
PyExpr |
BasicEscapeDirective.applyForPySrc(PyExpr value,
List<PyExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
PyExpr |
EscapeHtmlDirective.applyForPySrc(PyExpr value,
List<PyExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
PyExpr |
EscapeHtmlDirective.applyForPySrc(PyExpr value,
List<PyExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
PyExpr |
EscapeHtmlDirective.applyForPySrc(PyExpr value,
List<PyExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
List<PyExpr> |
GenPyExprsVisitor.exec(SoyNode node) |
| Modifier and Type | Class and Description |
|---|---|
class |
PyListExpr
Value class to represent a Python List expression.
|
class |
PyStringExpr
Value class to represent a Python String expression.
|
| Modifier and Type | Method and Description |
|---|---|
PyExpr |
SoyPySrcPrintDirective.applyForPySrc(PyExpr value,
List<PyExpr> args)
Applies this directive on the given string value.
|
PyExpr |
PyFunctionExprBuilder.asPyExpr() |
PyExpr |
SoyPySrcFunction.computeForPySrc(List<PyExpr> args)
Computes this function on the given arguments for the Python Source backend.
|
static PyExpr |
PyExprUtils.concatPyExprs(List<? extends PyExpr> pyExprs)
Builds one Python expression that computes the concatenation of the given Python expressions.
|
static PyExpr |
PyExprUtils.convertIterableToPyListExpr(Iterable<?> iterable)
Convert a java Iterable object to valid PyExpr as array.
|
static PyExpr |
PyExprUtils.convertIterableToPyTupleExpr(Iterable<?> iterable)
Convert a java Iterable object to valid PyExpr as tuple.
|
static PyExpr |
PyExprUtils.convertMapToPyExpr(Map<PyExpr,PyExpr> dict)
Convert a java Map to valid PyExpr as dict.
|
static PyExpr |
PyExprUtils.genPyNotNullCheck(PyExpr pyExpr)
Generate a Python not null (None) check expression for a given PyExpr.
|
static PyExpr |
PyExprUtils.maybeProtect(PyExpr expr,
int minSafePrecedence)
Wraps an expression with parenthesis if it's not above the minimum safe precedence.
|
static PyExpr |
PyExprUtils.wrapAsSanitizedContent(SanitizedContent.ContentKind contentKind,
PyExpr pyExpr)
Wraps an expression with the proper SanitizedContent constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PyFunctionExprBuilder |
PyFunctionExprBuilder.addArg(PyExpr arg) |
PyFunctionExprBuilder |
PyFunctionExprBuilder.addKwarg(String key,
PyExpr argValue) |
PyExpr |
SoyPySrcPrintDirective.applyForPySrc(PyExpr value,
List<PyExpr> args)
Applies this directive on the given string value.
|
static PyExpr |
PyExprUtils.genPyNotNullCheck(PyExpr pyExpr)
Generate a Python not null (None) check expression for a given PyExpr.
|
static PyExpr |
PyExprUtils.maybeProtect(PyExpr expr,
int minSafePrecedence)
Wraps an expression with parenthesis if it's not above the minimum safe precedence.
|
PyFunctionExprBuilder |
PyFunctionExprBuilder.setUnpackedKwargs(PyExpr mapping)
Unpacking keyword arguments will expand a dictionary into a series of keyword arguments.
|
static PyExpr |
PyExprUtils.wrapAsSanitizedContent(SanitizedContent.ContentKind contentKind,
PyExpr pyExpr)
Wraps an expression with the proper SanitizedContent constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PyExpr |
SoyPySrcPrintDirective.applyForPySrc(PyExpr value,
List<PyExpr> args)
Applies this directive on the given string value.
|
PyExpr |
SoyPySrcFunction.computeForPySrc(List<PyExpr> args)
Computes this function on the given arguments for the Python Source backend.
|
static PyExpr |
PyExprUtils.concatPyExprs(List<? extends PyExpr> pyExprs)
Builds one Python expression that computes the concatenation of the given Python expressions.
|
static PyExpr |
PyExprUtils.convertMapToPyExpr(Map<PyExpr,PyExpr> dict)
Convert a java Map to valid PyExpr as dict.
|
static PyExpr |
PyExprUtils.convertMapToPyExpr(Map<PyExpr,PyExpr> dict)
Convert a java Map to valid PyExpr as dict.
|