Class OperatorInfo

java.lang.Object
net.sf.saxon.expr.parser.OperatorInfo

public class OperatorInfo extends Object
  • Constructor Details

    • OperatorInfo

      public OperatorInfo()
  • Method Details

    • toString

      public String toString(OperatorSymbol symbol)
      Get a string representation of an operator
    • operatorPrecedence

      public static int operatorPrecedence(OperatorSymbol symbol)
      Get the precedence associated with a given operator
      Parameters:
      symbol - the operator in question
      Returns:
      a higher number for higher precedence (closer binding)
    • inverse

      public static OperatorSymbol inverse(OperatorSymbol operator)
      Return the inverse of a relational operator, so that "a op b" can be rewritten as "b inverse(op) a"
      Parameters:
      operator - the operator whose inverse is required
      Returns:
      the inverse operator
    • negate

      public static OperatorSymbol negate(OperatorSymbol operator)
      Return the negation of a relational operator, so that "a op b" can be rewritten as not(b op' a)
      Parameters:
      operator - the operator to be negated
      Returns:
      the negated operator
    • isOrderedOperator

      public static boolean isOrderedOperator(OperatorSymbol operator)