net.sf.saxon.expr
public class NegateExpression extends UnaryExpression
Constructor Summary | |
---|---|
NegateExpression(Expression base)
Create a NegateExpression |
Method Summary | |
---|---|
Expression | copy()
Copy an expression. |
protected String | displayOperator(Configuration config) |
Item | evaluateItem(XPathContext context)
Evaluate the expression. |
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the expression, if this is known statically |
void | setBackwardsCompatible(boolean compatible)
Set whether the expression is to be evaluated in XPath 1.0 compatibility mode |
Expression | typeCheck(ExpressionVisitor visitor, ItemType contextItemType) |
Parameters: base the expression that computes the value whose sign is to be reversed
Returns: the copy of the original expression
Parameters: th the type hierarchy cache
Parameters: compatible true if XPath 1.0 compatibility mode is enabled