public final class BoolEval extends Object implements NumericValueEval, StringValueEval
| Modifier and Type | Field and Description |
|---|---|
static BoolEval |
FALSE |
static BoolEval |
TRUE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanValue() |
double |
getNumberValue() |
String |
getStringValue() |
String |
toString() |
static BoolEval |
valueOf(boolean b)
Convenience method for the following:
(b ? BoolEval.TRUE : BoolEval.FALSE) |
public static BoolEval valueOf(boolean b)
(b ? BoolEval.TRUE : BoolEval.FALSE)BoolEval instance representing b.public boolean getBooleanValue()
public double getNumberValue()
getNumberValue in interface NumericValueEvalpublic String getStringValue()
getStringValue in interface StringValueEvalnull, possibly empty string.