| Interface | Description |
|---|---|
| ExpressionNode |
An interface for expression nodes.
|
| ExpressionNodeVisitor |
An interface for the visitor design pattern.
|
| Class | Description |
|---|---|
| AdditionExpressionNode |
An ExpressionNode that handles additions and subtractions.
|
| ConstantExpressionNode |
An ExpressionNode that stores a constant value
|
| ExponentiationExpressionNode |
An ExpressionNode that handles exponentiation.
|
| FunctionExpressionNode |
An ExpressionNode that handles mathematical functions.
|
| MultiplicationExpressionNode |
An ExpressionNode that handles multiplications and divisions.
|
| Parser |
A parser for mathematical expressions.
|
| SequenceExpressionNode |
A base class for AdditionExpressionNode and MultiplicationExpressionNode.
|
| SetVariable |
A visitor that sets a variable with a specific name to a given value
|
| Token |
A token that is produced by Tokenizer and fed into Parser.parse
A token consists of a token identifier, a string that the token was
created from and the position in the input string that the token was found.
|
| Tokenizer |
A class for reading an input string and separating it into tokens that can be
fed into Parser.
|
| VariableExpressionNode |
An ExpressionNode that stores a named variable
|
| Exception | Description |
|---|---|
| EvaluationException |
A simple subclass of RuntimeException that indicates errors when trying to
evaluate an expression.
|
| ParserException |
A simple subclass of RuntimeException that indicates errors when trying to
parse the input to Parser.
|
Copyright © 2017. All rights reserved.