public abstract class Expression extends Object implements Serializable
Can be evaluated to return a double value. If an error occurs Double.NaN will be returned.
| Constructor and Description |
|---|
Expression() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
evaluate()
Evaluates the expression to a double number.
|
boolean |
isConstant()
Determines the this expression is constant
|
Expression |
simplify()
Returns a simplified version of this expression.
|
public abstract double evaluate()
public Expression simplify()
public boolean isConstant()
Copyright © 2016. All rights reserved.