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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
getPrecedence()
Returns the precedence of the top-most operator, or Integer.MAX_VALUE.
|
String |
getText()
Returns the expression text.
|
int |
hashCode() |
String |
toString() |
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()