com.jclark.xsl.expr

Class RootExpr

Implemented Interfaces:
NodeSetExpr

(package private) 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

makeBooleanExpr, makeNodeSetExpr, makeNumberExpr, makePredicateExpr, makeStringExpr, makeVariantExpr

Constructor Details

RootExpr

(package private)  RootExpr(NodeSetExpr expr)
construct with a sub-expression

Method Details

eval

public NodeIterator eval(Node node,
                         ExprContext context)
            throws XSLException
evaluate the sub-expression with the context node's root node
Specified by:
eval in interface NodeSetExpr