public class TargetExpr extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
Note that even though the precedence numbers we use are for Soy (see
Operator.getPrecedence()), the precedence ordering of
the Soy expression operators matches that of JS, Python, and Java, so the precedence numbers are
correct when used for generating the target code as well.
| Constructor and Description |
|---|
TargetExpr(String text,
int precedence) |
public TargetExpr(String text, int precedence)
text - The expression text in the target language.precedence - The precedence of the top-most operator. Or Integer.MAX_VALUE.public String getText()
public int getPrecedence()