jd.xml.xpath.expr.operator
Class Subtract

java.lang.Object
  extended byjd.xml.xpath.expr.ExpressionImpl
      extended byjd.xml.xpath.expr.NumericExpression
          extended byjd.xml.xpath.expr.operator.NumericOperator
              extended byjd.xml.xpath.expr.operator.Subtract
All Implemented Interfaces:
Expression, Operator

public class Subtract
extends NumericOperator

Subtract represents the '-' expression.


Field Summary
 
Fields inherited from class jd.xml.xpath.expr.operator.NumericOperator
lhs_, rhs_
 
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
Subtract(Expression lhs, Expression rhs)
           
 
Method Summary
 void accept(ExpressionVisitor visitor)
          Accept a ExpressionVisitor.
protected  double toNumberValue(double n1, double n2)
          Evaluate the expression.
 
Methods inherited from class jd.xml.xpath.expr.operator.NumericOperator
getContextDependencies, toNumberValue
 
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
 
Methods inherited from interface jd.xml.xpath.expr.Expression
getResultType, hasContextDependencies, isUniqueFilter, matchesFilter, toBooleanValue, toNode, toNodeSet, toString, toStringValue, toXObject
 

Constructor Detail

Subtract

public Subtract(Expression lhs,
                Expression rhs)
Method Detail

toNumberValue

protected double toNumberValue(double n1,
                               double n2)
Description copied from class: NumericOperator
Evaluate the expression.

Specified by:
toNumberValue in class NumericOperator

accept

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