Interface Operator


public interface Operator
Constants used to represent XPath operators.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The addition operator +
    static final int
    The floating point division operator div.
    static final int
    The equal to operator =.
    static final int
    The greater-than operator >
    static final int
    The greater-than or equals operator >=
    static final int
    The less-than operator <
    static final int
    The less-than-or-equal-to operator <=
    static final int
    The remainder operator mod.
    static final int
    The multiplication operator *
    static final int
    Unary -
    static final int
    Indicates that we're passing through a grammar production without actually activating it.
    static final int
    The not equal to operator !=
    static final int
    The subtraction operator -
  • Field Details

    • NO_OP

      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.
      See Also:
    • EQUALS

      static final int EQUALS
      The equal to operator =. This is equivalent to == in Java. This is a comparison operator, not an assignment operator.
      See Also:
    • NOT_EQUALS

      static final int NOT_EQUALS
      The not equal to operator !=
      See Also:
    • LESS_THAN

      static final int LESS_THAN
      The less-than operator <
      See Also:
    • LESS_THAN_EQUALS

      static final int LESS_THAN_EQUALS
      The less-than-or-equal-to operator <=
      See Also:
    • GREATER_THAN

      static final int GREATER_THAN
      The greater-than operator >
      See Also:
    • GREATER_THAN_EQUALS

      static final int GREATER_THAN_EQUALS
      The greater-than or equals operator >=
      See Also:
    • ADD

      static final int ADD
      The addition operator +
      See Also:
    • SUBTRACT

      static final int SUBTRACT
      The subtraction operator -
      See Also:
    • MULTIPLY

      static final int MULTIPLY
      The multiplication operator *
      See Also:
    • MOD

      static final int MOD
      The remainder operator mod. This is equivalent to % in Java.
      See Also:
    • DIV

      static final int DIV
      The floating point division operator div. This is equivalent to / in Java.
      See Also:
    • NEGATIVE

      static final int NEGATIVE
      Unary -
      See Also: