Package net.sf.saxon.expr.parser
Class OperatorInfo
java.lang.Object
net.sf.saxon.expr.parser.OperatorInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OperatorSymbolinverse(OperatorSymbol operator) Return the inverse of a relational operator, so that "a op b" can be rewritten as "b inverse(op) a"static booleanisOrderedOperator(OperatorSymbol operator) static OperatorSymbolnegate(OperatorSymbol operator) Return the negation of a relational operator, so that "a op b" can be rewritten as not(b op' a)static intoperatorPrecedence(OperatorSymbol symbol) Get the precedence associated with a given operatortoString(OperatorSymbol symbol) Get a string representation of an operator
-
Constructor Details
-
OperatorInfo
public OperatorInfo()
-
-
Method Details
-
toString
Get a string representation of an operator -
operatorPrecedence
Get the precedence associated with a given operator- Parameters:
symbol- the operator in question- Returns:
- a higher number for higher precedence (closer binding)
-
inverse
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
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
-