public interface Operator
Modifier and Type | Field | Description |
---|---|---|
static int |
ADD_OPERATOR |
The add operator type
|
static int |
AND_OPERATOR |
The and operator type
|
static int |
DIVIDE_OPERATOR |
The divide operator type
|
static int |
EQUALITY_OPERATOR |
The "equality" operator type
|
static int |
MODULUS_OPERATOR |
The modulus operator type
|
static int |
MULTIPLY_OPERATOR |
The multiply operator type
|
static int |
OR_OPERATOR |
The or operator type
|
static int |
QUOTIENT_OPERATOR |
The quotient operator type
|
static int |
SUBTRACT_OPERATOR |
The subtract operator type
|
Modifier and Type | Method | Description |
---|---|---|
XPathResult |
execute(XPathExpression left,
XPathExpression right,
XPathContext context) |
Executes this operator on the given expressions
|
XPathResult |
execute(XPathResult left,
XPathResult right) |
Executes this operator on the given XPath values
|
int |
getOperatorType() |
Returns the type for this Operator.
|
static final int ADD_OPERATOR
static final int AND_OPERATOR
static final int DIVIDE_OPERATOR
static final int EQUALITY_OPERATOR
static final int MODULUS_OPERATOR
static final int MULTIPLY_OPERATOR
static final int OR_OPERATOR
static final int QUOTIENT_OPERATOR
static final int SUBTRACT_OPERATOR
int getOperatorType()
XPathResult execute(XPathExpression left, XPathExpression right, XPathContext context) throws XPathException
left
- the left-side expressionright
- the right-side expressioncontext
- the XPathContextXPathException
- when an error occurs during executionXPathResult execute(XPathResult left, XPathResult right) throws XPathException
left
- the left-side expressionright
- the right-side expressionXPathException
- when an error occurs during execution