| Package | Description |
|---|---|
| com.google.template.soy.exprtree |
Expression parse tree.
|
| com.google.template.soy.internal.targetexpr |
Target expression generation utilities.
|
| com.google.template.soy.jssrc.restricted | |
| com.google.template.soy.pysrc.restricted |
| Modifier and Type | Method and Description |
|---|---|
Operator |
ExprNode.OperatorNode.getOperator() |
Operator |
AbstractOperatorNode.getOperator() |
static Operator |
Operator.of(String tokenString,
int numOperands)
Fetches an Operator given the pair (tokenString, numOperands).
|
static Operator |
Operator.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Operator[] |
Operator.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
AbstractOperatorNode(Operator operator,
SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
static String |
ExprUtils.genExprWithNewToken(Operator op,
List<? extends TargetExpr> operandExprs,
String newToken)
Generates an expression for the given operator and operands assuming that the expression
for the operator uses the same syntax format as the Soy operator, with the exception that the
of a different token.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
PyExprUtils.pyPrecedenceForOperator(Operator op)
Provide the Python operator precedence for a given operator.
|