abstract class BinaryExpression extends Expression
| Modifier and Type | Field and Description |
|---|---|
protected int |
operator |
protected Expression |
p1 |
protected Expression |
p2 |
staticContext| Constructor and Description |
|---|
BinaryExpression()
Default constructor
|
BinaryExpression(Expression p1,
int op,
Expression p2)
Create a binary expression identifying the two operands and the operator
|
| Modifier and Type | Method and Description |
|---|---|
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
|
containsReferences, enumerate, evaluate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getDataType, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, reduce, setStaticContext, usesCurrentprotected Expression p1
protected Expression p2
protected int operator
public BinaryExpression()
public BinaryExpression(Expression p1, int op, Expression p2)
p1 - the left-hand operandop - the operator, as a token returned by the Tokenizer (e.g. Tokenizer.AND)p2 - the right-hand operandpublic void setDetails(Expression p1, int op, Expression p2)
p1 - the left-hand operandop - the operator, as a token returned by the Tokenizer (e.g. Tokenizer.AND)p2 - the right-hand operandpublic Expression simplify() throws XPathException
simplify in class ExpressionXPathExceptionpublic int getDependencies()
getDependencies in class Expressionpublic void display(int level)
display in class Expression