See: Description
| Package | Description |
|---|---|
| org.expressionj |
Contains only a command line class which gives the version and date of this library.
|
| org.expressionj.expr |
Contain classes that are used to compute equations.
|
| org.expressionj.expr.parser |
Produced by javaCC.
|
| org.expressionj.functions |
Contains classes which allows to bind names in the mathematical expressions to regular Java methods.
|
| org.expressionj.model |
Contains fundamental classes used for expressions.
|
| org.expressionj.util |
Contains several utility classes.
|
a+2
Equation equation = ExpressionJ.parse("a+2");
Let's evaluate the expression with 1 for the value of a:
equation.getVariable("a").setValue(1);
Object result = equation.eval();
The result will be the Integer 3.Copyright © 2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence