public final class BoolEval extends java.lang.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() |
java.lang.String |
getStringValue() |
java.lang.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 NumericValueEval
public java.lang.String getStringValue()
getStringValue
in interface StringValueEval
null
, possibly empty string.public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.