package ast.expression.classes; import ast.expression.AbstractExpression; import visitor.Visitor; public class DoubleLiteral extends AbstractExpression { double value; public DoubleLiteral(int line, int column, double value) { super(line, column); this.value = value; } public double getValue() { return value; } public void setValue(double value) { this.value = value; } @Override public String toString() { return Double.toString(getValue()); } @Override public <TP, TR> TR accept(Visitor<TP, TR> v, TP param) { return v.visit(this, param); } }