| 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.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 |
RoundFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
RandomIntFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
MinFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
MaxFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
KeysFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
FloorFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
CeilingFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
AugmentMapFunction.computeForPySrc(List<PyExpr> args) |
| Modifier and Type | Method and Description |
|---|---|
PyExpr |
RoundFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
RandomIntFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
MinFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
MaxFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
KeysFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
FloorFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
CeilingFunction.computeForPySrc(List<PyExpr> args) |
PyExpr |
AugmentMapFunction.computeForPySrc(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 |
|---|---|
protected PyExpr |
TranslateToPyExprVisitor.visitBooleanNode(BooleanNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitConditionalOpNode(OperatorNodes.ConditionalOpNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitDataAccessNode(DataAccessNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitEqualOpNode(OperatorNodes.EqualOpNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitExprRootNode(ExprRootNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitFunctionNode(FunctionNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitGlobalNode(GlobalNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitListLiteralNode(ListLiteralNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitMapLiteralNode(MapLiteralNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitNotEqualOpNode(OperatorNodes.NotEqualOpNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitNullCoalescingOpNode(OperatorNodes.NullCoalescingOpNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitNullNode(NullNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitOperatorNode(ExprNode.OperatorNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitPlusOpNode(OperatorNodes.PlusOpNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitPrimitiveNode(ExprNode.PrimitiveNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitStringNode(StringNode node) |
protected PyExpr |
TranslateToPyExprVisitor.visitVarRefNode(VarRefNode node) |
| 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.convertMapToOrderedDict(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.
|
static PyExpr |
PyExprUtils.genPyNotNullCheck(PyExpr pyExpr)
Generates a Python not null (None) check expression for the given
PyExpr. |
static PyExpr |
PyExprUtils.genPyNullCheck(PyExpr expr)
Generates a Python null (None) check expression for the 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)
Generates a Python not null (None) check expression for the given
PyExpr. |
static PyExpr |
PyExprUtils.genPyNullCheck(PyExpr expr)
Generates a Python null (None) check expression for the 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.convertMapToOrderedDict(Map<PyExpr,PyExpr> dict)
Convert a java Map to valid PyExpr as dict.
|
static PyExpr |
PyExprUtils.convertMapToOrderedDict(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.
|
static PyExpr |
PyExprUtils.convertMapToPyExpr(Map<PyExpr,PyExpr> dict)
Convert a java Map to valid PyExpr as dict.
|