jd.xml.xpath.expr.operator
Class And

java.lang.Object
  extended byjd.xml.xpath.expr.ExpressionImpl
      extended byjd.xml.xpath.expr.BooleanExpression
          extended byjd.xml.xpath.expr.operator.BooleanOperator
              extended byjd.xml.xpath.expr.operator.And
All Implemented Interfaces:
Expression, Operator

public class And
extends BooleanOperator

And represents the 'and' expression.


Field Summary
 
Fields inherited from class jd.xml.xpath.expr.operator.BooleanOperator
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
And(Expression lhs, Expression rhs)
          Create a And expression.
 
Method Summary
 void accept(ExpressionVisitor visitor)
          Accept a ExpressionVisitor.
 boolean toBooleanValue(XPathContext context)
          Evaluate the Expression.
 
Methods inherited from class jd.xml.xpath.expr.operator.BooleanOperator
getContextDependencies
 
Methods inherited from class jd.xml.xpath.expr.BooleanExpression
getResultType, toNumberValue, 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, toNode, toNodeSet, toNumberValue, toString, toStringValue, toXObject
 

Constructor Detail

And

public And(Expression lhs,
           Expression rhs)
Create a And expression.

Method Detail

toBooleanValue

public boolean toBooleanValue(XPathContext context)
Evaluate the Expression.

Specified by:
toBooleanValue in interface Expression
Specified by:
toBooleanValue in class BooleanExpression
Parameters:
context - the evaluation context

accept

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