org.exist.xpath
Class VarBinding

java.lang.Object
  extended byorg.exist.xpath.Step
      extended byorg.exist.xpath.VarBinding
All Implemented Interfaces:
Expression

public class VarBinding
extends Step


Field Summary
protected  Expression binding
           
protected  java.lang.String name
           
 
Fields inherited from class org.exist.xpath.Step
axis, inPredicate, pool, predicates, test
 
Constructor Summary
VarBinding(BrokerPool pool, java.lang.String name)
           
VarBinding(BrokerPool pool, java.lang.String name, Expression binding)
           
 
Method Summary
 Value eval(DocumentSet docs, NodeSet context, NodeProxy node)
          Evaluate the expression represented by this object.
 java.lang.String getName()
           
 java.lang.String pprint()
          Return a readable representation of this expression.
 
Methods inherited from class org.exist.xpath.Step
addPredicate, getAxis, preselect, returnsType, setAxis, setInPredicate, setTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

binding

protected Expression binding
Constructor Detail

VarBinding

public VarBinding(BrokerPool pool,
                  java.lang.String name,
                  Expression binding)

VarBinding

public VarBinding(BrokerPool pool,
                  java.lang.String name)
Method Detail

getName

public java.lang.String getName()

eval

public Value eval(DocumentSet docs,
                  NodeSet context,
                  NodeProxy node)
Description copied from interface: Expression
Evaluate the expression represented by this object. Depending on the context in which this expression is executed, either context, node or both of them may be set. An implementing class should know how to handle this. Most classes only expect context to contain a list of nodes which represents the current context of this expression.

Specified by:
eval in interface Expression
Specified by:
eval in class Step

pprint

public java.lang.String pprint()
Description copied from interface: Expression
Return a readable representation of this expression. This method is called whenever the xpath-query should be displayed to the user.

Specified by:
pprint in interface Expression
Overrides:
pprint in class Step


Copyright (C) Wolfgang Meier. All rights reserved.