com.icl.saxon.expr
abstract class BinaryExpression extends Expression
| Field Summary | |
|---|---|
| protected int | operator |
| protected Expression | p1 |
| protected Expression | p2 |
| Constructor Summary | |
|---|---|
| BinaryExpression()
Default constructor | |
| BinaryExpression(Expression p1, int op, Expression p2)
Create a binary expression identifying the two operands and the operator | |
| Method Summary | |
|---|---|
| void | display(int level)
Diagnostic print of expression structure |
| int | getDependencies()
Determine which aspects of the context the expression depends on. |
| void | setDetails(Expression p1, int op, Expression p2)
Identify the two operands and the operator (for use when the default constructor was used) |
| Expression | simplify()
Simplify an expression |
Parameters: p1 the left-hand operand op the operator, as a token returned by the Tokenizer (e.g. Tokenizer.AND) p2 the right-hand operand
Parameters: p1 the left-hand operand op the operator, as a token returned by the Tokenizer (e.g. Tokenizer.AND) p2 the right-hand operand
Returns: the simplified expression