| Package | Description |
|---|---|
| com.google.template.soy.exprtree |
Expression parse tree.
|
| com.google.template.soy.jssrc.dsl | |
| com.google.template.soy.pysrc.restricted |
| Modifier and Type | Method and Description |
|---|---|
Operator |
ExprNode.OperatorNode.getOperator() |
Operator |
AbstractOperatorNode.getOperator() |
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 JsExpr |
SoyJsPluginUtils.genJsExprUsingSoySyntax(Operator op,
List<JsExpr> operandJsExprs)
Generates a JS expression for the given operator and operands.
|
CodeChunk.WithValue |
CodeChunk.WithValue.op(Operator op,
CodeChunk.WithValue rhs) |
static CodeChunk.WithValue |
CodeChunk.operation(Operator op,
List<CodeChunk.WithValue> operands)
Creates a code chunk representing the given Soy operator applied to the given operands.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
PyExprUtils.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.
|
static int |
PyExprUtils.pyPrecedenceForOperator(Operator op)
Provide the Python operator precedence for a given operator.
|