public final class SharedRuntime extends Object
jbcsrc and
Tofu backends.| Modifier and Type | Method and Description |
|---|---|
static boolean |
compareString(String string,
SoyValue other)
Determines if the operand's string form can be equality-compared with a string.
|
static double |
dividedBy(SoyValue operand0,
SoyValue operand1)
Performs the
/ operator on the two values. |
static boolean |
equal(SoyValue operand0,
SoyValue operand1)
Custom equality operator that smooths out differences between different Soy runtimes.
|
static boolean |
lessThan(SoyValue left,
SoyValue right)
Performs the
< operator on the two values. |
static boolean |
lessThanOrEqual(SoyValue left,
SoyValue right)
Performs the
<= operator on the two values. |
static SoyValue |
minus(SoyValue operand0,
SoyValue operand1)
Performs the
- operator on the two values. |
static NumberData |
negative(SoyValue node)
Performs the unary negation
- operator on the value. |
static SoyValue |
plus(SoyValue operand0,
SoyValue operand1)
Performs the
+ operator on the two values. |
static NumberData |
times(SoyValue operand0,
SoyValue operand1)
Performs the
* operator on the two values. |
public static boolean equal(SoyValue operand0, SoyValue operand1)
This approximates Javascript's behavior, but is much easier to understand.
public static SoyValue plus(SoyValue operand0, SoyValue operand1)
+ operator on the two values.public static SoyValue minus(SoyValue operand0, SoyValue operand1)
- operator on the two values.public static NumberData times(SoyValue operand0, SoyValue operand1)
* operator on the two values.public static double dividedBy(SoyValue operand0, SoyValue operand1)
/ operator on the two values.public static boolean lessThan(SoyValue left, SoyValue right)
< operator on the two values.public static boolean lessThanOrEqual(SoyValue left, SoyValue right)
<= operator on the two values.public static NumberData negative(SoyValue node)
- operator on the value.