public class NodeConstantDouble extends java.lang.Object implements IExpressionNode.INodeDouble, IConstantNode
IExpressionNode.INodeBoolean, IExpressionNode.INodeDouble, IExpressionNode.INodeLong, IExpressionNode.INodeObject<T>, IExpressionNode.INodeString
Modifier and Type | Field and Description |
---|---|
static NodeConstantDouble |
ONE |
double |
value |
static NodeConstantDouble |
ZERO |
Constructor and Description |
---|
NodeConstantDouble(double value) |
Modifier and Type | Method and Description |
---|---|
double |
evaluate() |
IExpressionNode.INodeDouble |
inline() |
static NodeConstantDouble |
of(double value) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
evaluateAsString, getAsDouble
public static final NodeConstantDouble ZERO
public static final NodeConstantDouble ONE
public final double value
public static NodeConstantDouble of(double value)
public double evaluate()
evaluate
in interface IExpressionNode.INodeDouble
public IExpressionNode.INodeDouble inline()
inline
in interface IExpressionNode
inline
in interface IExpressionNode.INodeDouble
public java.lang.String toString()
toString
in class java.lang.Object