com.jclark.xsl.expr
Class RootExpr

java.lang.Object
  extended by com.jclark.xsl.expr.ConvertibleExpr
      extended by com.jclark.xsl.expr.ConvertibleNodeSetExpr
          extended by com.jclark.xsl.expr.RootExpr
All Implemented Interfaces:
NodeSetExpr

 class RootExpr
extends ConvertibleNodeSetExpr

an XPath expression (component) that evaluates a sub-expression with a document root Node as the contextNode


Field Summary
 
Fields inherited from class com.jclark.xsl.expr.ConvertibleNodeSetExpr
SINGLE_LEVEL, STAYS_IN_SUBTREE
 
Constructor Summary
RootExpr(NodeSetExpr expr)
          construct with a sub-expression
 
Method Summary
 NodeIterator eval(Node node, ExprContext context)
          evaluate the sub-expression with the context node's root node
 
Methods inherited from class com.jclark.xsl.expr.ConvertibleNodeSetExpr
compose, getChildrenNodePattern, getOptimizeFlags, makeBooleanExpr, makeNodeSetExpr, makeStringExpr, makeVariantExpr
 
Methods inherited from class com.jclark.xsl.expr.ConvertibleExpr
makeNumberExpr, makePredicateExpr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootExpr

RootExpr(NodeSetExpr expr)
construct with a sub-expression

Method Detail

eval

public NodeIterator eval(Node node,
                         ExprContext context)
                  throws XSLException
evaluate the sub-expression with the context node's root node

Throws:
XSLException