public class DoubleValue extends java.lang.Object implements Expression, PrimitiveValue
PrimitiveValue.InvalidPrimitive
Modifier and Type | Field and Description |
---|---|
private double |
value |
Constructor and Description |
---|
DoubleValue(double value) |
DoubleValue(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ExpressionVisitor expressionVisitor) |
boolean |
equals(java.lang.Object o) |
PrimitiveType |
getType() |
double |
getValue() |
void |
setValue(double d) |
boolean |
toBool() |
double |
toDouble() |
long |
toLong() |
java.lang.String |
toString() |
public DoubleValue(double value)
public DoubleValue(java.lang.String value)
public void accept(ExpressionVisitor expressionVisitor)
accept
in interface Expression
public double getValue()
public void setValue(double d)
public java.lang.String toString()
toString
in class java.lang.Object
public long toLong() throws PrimitiveValue.InvalidPrimitive
toLong
in interface PrimitiveValue
PrimitiveValue.InvalidPrimitive
public double toDouble()
toDouble
in interface PrimitiveValue
public boolean toBool() throws PrimitiveValue.InvalidPrimitive
toBool
in interface PrimitiveValue
PrimitiveValue.InvalidPrimitive
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public PrimitiveType getType()
getType
in interface PrimitiveValue