1 package de.congrace.exp4j;
4 * This is the basic result class of the exp4j {@link ExpressionBuilder}
9 public interface Calculable {
11 * calculate the result of the expression
13 * @return the result of the calculation
15 public Variable calculate();
18 * return the expression in reverse polish postfix notation
20 * @return the expression used to construct this {@link Calculable}
22 public String getExpression();
25 * set a variable value for the calculation
28 * the value of the variable
30 public void setVariable(Variable var);