org.jaxen.saxpath

Interface Operator

public interface Operator

Constants used to represent XPath operators.
Field Summary
static intADD
The addition operator +
static intDIV
The floating point division operator div.
static intEQUALS
The equal to operator =.
static intGREATER_THAN
The greater-than operator >
static intGREATER_THAN_EQUALS
The greater-than or equals operator >=
static intLESS_THAN
The less-than operator <
static intLESS_THAN_EQUALS
The less-than-or-equal-to operator <=
static intMOD
The remainder operator mod.
static intMULTIPLY
The multiplication operator *
static intNEGATIVE
Unary -
static intNOT_EQUALS
The not equal to operator !
static intNO_OP
Indicates that we're passing through a grammar production without actually activating it.
static intSUBTRACT
The subtraction operator -

Field Detail

ADD

public static final int ADD
The addition operator +

DIV

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

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.

GREATER_THAN

public static final int GREATER_THAN
The greater-than operator >

GREATER_THAN_EQUALS

public static final int GREATER_THAN_EQUALS
The greater-than or equals operator >=

LESS_THAN

public static final int LESS_THAN
The less-than operator <

LESS_THAN_EQUALS

public static final int LESS_THAN_EQUALS
The less-than-or-equal-to operator <=

MOD

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

MULTIPLY

public static final int MULTIPLY
The multiplication operator *

NEGATIVE

public static final int NEGATIVE
Unary -

NOT_EQUALS

public static final int NOT_EQUALS
The not equal to operator !=

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.

SUBTRACT

public static final int SUBTRACT
The subtraction operator -