|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectru.sstu.math.ep.Parser
public class Parser
Parser class parses string as mathematical expression, builds
tree and creates Expression.
| Nested Class Summary | |
|---|---|
static class |
Parser.EmptyExpressionException
Cannot compile empty string. |
static class |
Parser.NoBracketException
Closing bracket expected. |
static class |
Parser.UnexpectedBracketException
Unexpected closing bracket. |
| Constructor Summary | |
|---|---|
Parser()
|
|
| Method Summary | |
|---|---|
Expression |
compile(String expression)
Compiles string into expression. |
Expression |
compile(String expression,
Iterable<String> variables)
Compiles expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parser()
| Method Detail |
|---|
public Expression compile(String expression)
throws org.apache.commons.math.MathException
expression - expression
org.apache.commons.math.MathException - if cannot compile expression
public Expression compile(String expression,
Iterable<String> variables)
throws org.apache.commons.math.MathException
expression - expressionvariables - variables
org.apache.commons.math.MathException - if cannot compile expression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||