org.jaxen.saxpath

Interface Operator

public interface Operator

Constants used to represent XPath operators.

Field Summary

static int
ADD
The addition operator +
static int
DIV
The floating point division operator div.
static int
EQUALS
The equal to operator =.
static int
GREATER_THAN
The greater-than operator >
static int
GREATER_THAN_EQUALS
The greater-than or equals operator >=
static int
LESS_THAN
The less-than operator <
static int
LESS_THAN_EQUALS
The less-than-or-equal-to operator <=
static int
MOD
The remainder operator mod.
static int
MULTIPLY
The multiplication operator *
static int
NEGATIVE
Unary -
static int
NOT_EQUALS
The not equal to operator !=
static int
NO_OP
Indicates that we're passing through a grammar production without actually activating it.
static int
SUBTRACT
The subtraction operator -

Field Details

ADD

public static final int ADD
The addition operator +
Field Value:
7

DIV

public static final int DIV
The floating point division operator div. This is equivalent to / in Java.
Field Value:
11

EQUALS

public static final int EQUALS
The equal to operator =. This is equivalent to == in Java. This is a comparison operator, not an assignment operator.
Field Value:
1

GREATER_THAN

public static final int GREATER_THAN
The greater-than operator >
Field Value:
5

GREATER_THAN_EQUALS

public static final int GREATER_THAN_EQUALS
The greater-than or equals operator >=
Field Value:
6

LESS_THAN

public static final int LESS_THAN
The less-than operator <
Field Value:
3

LESS_THAN_EQUALS

public static final int LESS_THAN_EQUALS
The less-than-or-equal-to operator <=
Field Value:
4

MOD

public static final int MOD
The remainder operator mod. This is equivalent to % in Java.
Field Value:
10

MULTIPLY

public static final int MULTIPLY
The multiplication operator *
Field Value:
9

NEGATIVE

public static final int NEGATIVE
Unary -
Field Value:
12

NOT_EQUALS

public static final int NOT_EQUALS
The not equal to operator !=
Field Value:
2

NO_OP

public static final int NO_OP
Indicates that we're passing through a grammar production without actually activating it. For example in the expression 1 is matches AdditiveExpr and MultiplicativeExpr in the XPath grammar, even though it has neither a plus, minus, multiplication, or other sign.
Field Value:
0

SUBTRACT

public static final int SUBTRACT
The subtraction operator -
Field Value:
8