public class SoyJsCodeUtils extends Object
Important: This class may only be used in implementing plugins (e.g. functions, directives).
| Modifier and Type | Method and Description |
|---|---|
static JsExpr |
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 |
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.
|
public static JsExpr genJsExprUsingSoySyntax(Operator op, List<JsExpr> operandJsExprs)
op - The operator.operandJsExprs - The operands.public static JsExpr genJsExprUsingSoySyntaxWithNewToken(Operator op, List<JsExpr> operandJsExprs, String newToken)
op - The operator.operandJsExprs - The operands.newToken - The equivalent JS operator's token.