public final class SharedRuntime extends Object
jbcsrc
and
Tofu
backends.Modifier and Type | Method and Description |
---|---|
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 operand0,
SoyValue operand1)
Performs the
< operator on the two values. |
static boolean |
lessThanOrEqual(SoyValue operand0,
SoyValue operand1)
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 operand0, SoyValue operand1)
<
operator on the two values.public static boolean lessThanOrEqual(SoyValue operand0, SoyValue operand1)
<=
operator on the two values.public static NumberData negative(SoyValue node)
-
operator on the value.