| Interface | Description |
|---|---|
| EvalEnv |
Represents an application dependant evaluation environment.
|
| Function |
A representation of a function.
|
| Namespace |
Namespaces are used by a
in order
to resolve to symbol references and function calls. |
| Parser |
Instances of the
Parser interface are used to convert a code
string representing an arithmetic expression in a tree of terms
which can then be executed by using one of the evaluation methods of
the class. |
| Symbol |
Represents a read-only symbol.
|
| Variable |
Represents a variable to which a value can be assigned.
|
| WritableNamespace |
| Class | Description |
|---|---|
| Term |
The abstract
Term class is an in-memory representation of an
element within an arbitrary expression tree. |
| Term.Add |
The numerical ADD operation:
n-term
+ n-term
|
| Term.AndB |
The logical AND operation:
b-term
&& b-term
|
| Term.AndI |
The bitwise AND operation:
i-term
& i-term
|
| Term.Assign |
The assignment operation
variable-ref-term
= term
|
| Term.Binary | |
| Term.BinaryB |
An abstract binary (= 2 operands) operation.
|
| Term.BinaryI |
An abstract binary (= 2 operands) operation with a return type
of
int. |
| Term.BinaryN |
An abstract binary (= 2 operands) operation with a numeric return type.
|
| Term.Call |
A call of a (or reference to a)
. |
| Term.Cond |
The conditional operation
b-term
? |
| Term.ConstB |
A boolean constant, e.g.
|
| Term.ConstD |
A floating point constant, e.g.
|
| Term.ConstI |
An integer constant, e.g.
|
| Term.ConstS | |
| Term.Div |
The numerical DIV operation:
n-term
/ n-term
|
| Term.EqB |
The boolean EQ operation:
b-term
== b-term
|
| Term.EqD |
The double EQ operation:
d-term
== d-term
|
| Term.EqI |
The integer EQ operation:
i-term
== i-term
|
| Term.GeD |
The double GE operation:
d-term
>= d-term
|
| Term.GeI |
The integer GE operation:
i-term
>= i-term
|
| Term.GtD |
The double GT operation:
d-term
> d-term
|
| Term.GtI |
The integer GT operation:
i-term
> i-term
|
| Term.LeD |
The double LE operation:
d-term
<= d-term
|
| Term.LeI |
The integer LE operation:
i-term
<= i-term
|
| Term.LtD |
The double LT operation:
d-term
< d-term
|
| Term.LtI |
The integer LT operation:
i-term
< i-term
|
| Term.Mod |
The numerical MOD (modulo) operation:
n-term
% n-term
|
| Term.Mul |
The numerical MUL operation:
n-term
* n-term
|
| Term.Neg |
The numerical NEG operation:
- d-term
|
| Term.NEqB |
The boolean NEQ operation:
b-term
! |
| Term.NEqD |
The double NEQ operation:
d-term
! |
| Term.NEqI |
The integer NEQ operation:
i-term
! |
| Term.NotB |
The logical NOT operation
! |
| Term.NotI |
The bitwise NOT operation:
~ i-term
|
| Term.Op |
An abstract operation.
|
| Term.OrB |
The logical OR operation:
b-term
|| b-term
|
| Term.OrI |
The bitwise OR operation:
i-term
| i-term
|
| Term.Ref |
A reference to a
. |
| Term.Sub |
The numerical SUB operation:
n-term
- n-term
|
| Term.Unary |
An abstract unary (= 1 operand) operation.
|
| Term.UnaryB |
An abstract unary (= 1 operand) operation with return type of
boolean. |
| Term.UnaryI |
An abstract unary (= 1 operand) operation with return type of
int. |
| Term.UnaryN |
An abstract unary (= 1 operand) operation with a numeric return type.
|
| Term.XOrI |
The bitwise XOR operation:
i-term
^ i-term
|
| Exception | Description |
|---|---|
| EvalException |
An exception that can be thrown during the evaluation of a
. |
| ParseException |
An exception thrown by a
ParserX.parse() call in order to
signal a parser error. |
Term class which plays a central role in the API.
The other interfaces and classes in this package just support Term.
The Term class is used to represent the parsed expressions in memory
and also to evaluate them.Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.