jd.xml.xpath.expr.misc
Class Negate

java.lang.Object
  extended byjd.xml.xpath.expr.ExpressionImpl
      extended byjd.xml.xpath.expr.NumericExpression
          extended byjd.xml.xpath.expr.misc.Negate
All Implemented Interfaces:
Expression

public class Negate
extends NumericExpression

Negate represents the negate expression.


Field Summary
 
Fields inherited from interface jd.xml.xpath.expr.Expression
DEP_CONTEXT_NODE, DEP_CONTEXT_POSITION, DEP_CONTEXT_SIZE, DEP_CONTEXT_STATIC, DEP_NONE, DEP_UNKNOWN
 
Constructor Summary
Negate(Expression expr)
           
 
Method Summary
 void accept(ExpressionVisitor visitor)
          Accept a ExpressionVisitor.
 int getContextDependencies()
          Return a bitfield indicating the expression dependencies on the XPath context.
 double toNumberValue(XPathContext context)
          Evaluate the Expression to a number.
 
Methods inherited from class jd.xml.xpath.expr.NumericExpression
getResultType, toBooleanValue, toStringValue, toXObject
 
Methods inherited from class jd.xml.xpath.expr.ExpressionImpl
hasContextDependencies, isUniqueFilter, matchesFilter, toNode, toNodeSet, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Negate

public Negate(Expression expr)
Method Detail

toNumberValue

public double toNumberValue(XPathContext context)
Description copied from class: NumericExpression
Evaluate the Expression to a number.

Specified by:
toNumberValue in interface Expression
Specified by:
toNumberValue in class NumericExpression

getContextDependencies

public int getContextDependencies()
Description copied from interface: Expression
Return a bitfield indicating the expression dependencies on the XPath context.


accept

public void accept(ExpressionVisitor visitor)
Description copied from interface: Expression
Accept a ExpressionVisitor.