org.planx.xpath.expr.operator
Class Operator

java.lang.Object
  extended by org.planx.xpath.expr.Expression
      extended by org.planx.xpath.expr.operator.Operator
Direct Known Subclasses:
AndOperator, EqualityOperator, OrOperator, RelationalOperator, UnionOperator

public abstract class Operator
extends Expression

An XPath operator.


Field Summary
protected  Expression e1
           
protected  Expression e2
           
 
Constructor Summary
Operator(Expression e1, Expression e2)
           
 
Method Summary
 XObject evaluate(Context ctxt, Environment env, Navigator nav)
          Evaluate the expression for the given context using the specified environment.
protected abstract  XObject evaluate(XObject o1, XObject o2, Navigator nav)
           
protected abstract  String operatorName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

e1

protected final Expression e1

e2

protected final Expression e2
Constructor Detail

Operator

public Operator(Expression e1,
                Expression e2)
Method Detail

evaluate

public XObject evaluate(Context ctxt,
                        Environment env,
                        Navigator nav)
                 throws XPathException
Description copied from class: Expression
Evaluate the expression for the given context using the specified environment.

Specified by:
evaluate in class Expression
Throws:
XPathException

evaluate

protected abstract XObject evaluate(XObject o1,
                                    XObject o2,
                                    Navigator nav)
                             throws XPathException
Throws:
XPathException

operatorName

protected abstract String operatorName()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.