public class BooleanValue extends java.lang.Object implements PrimitiveValue, Expression
PrimitiveValue.InvalidPrimitive
Modifier and Type | Field and Description |
---|---|
static BooleanValue |
FALSE |
static BooleanValue |
TRUE |
private boolean |
value |
Modifier | Constructor and Description |
---|---|
private |
BooleanValue(boolean value) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ExpressionVisitor visitor) |
boolean |
equals(java.lang.Object o) |
PrimitiveType |
getType() |
boolean |
getValue() |
int |
hashCode() |
boolean |
toBool()
The boolean value of this primitive
|
double |
toDouble()
The double value of this primitive
|
long |
toLong()
The long value of this primitive
|
java.lang.String |
toRawString()
An unescaped string encoding of this primitive value.
|
java.lang.String |
toString() |
private boolean value
public static final BooleanValue TRUE
public static final BooleanValue FALSE
public boolean getValue()
public long toLong()
PrimitiveValue
toLong
in interface PrimitiveValue
public double toDouble()
PrimitiveValue
toDouble
in interface PrimitiveValue
public boolean toBool()
PrimitiveValue
toBool
in interface PrimitiveValue
public java.lang.String toRawString()
PrimitiveValue
toRawString
in interface PrimitiveValue
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void accept(ExpressionVisitor visitor)
accept
in interface Expression
public PrimitiveType getType()
getType
in interface PrimitiveValue