Package com.bc.jexp

The main package of the JEXP API.

See:
          Description

Interface Summary
EvalEnv Represents an application dependant evaluation environment.
Function A representation of a function.
Namespace Namespaces are used by a Parser 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 Term class.
Symbol Represents a read-only symbol.
Variable Represents a variable to which a value can be assigned.
WritableNamespace  
 

Class Summary
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) Function.
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 Symbol.
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 Summary
EvalException An exception that can be thrown during the evaluation of a Term.
ParseException An exception thrown by a ParserX.parse() call in order to signal a parser error.
 

Package com.bc.jexp Description

The main package of the JEXP API. It defines the abstract com.bc.jexp.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-2013 Brockmann Consult GmbH. All Rights Reserved.