com.jclark.xsl.expr

Class ConvertibleNodeSetExpr

abstract class ConvertibleNodeSetExpr extends ConvertibleExpr implements NodeSetExpr

A compiled XPath pattern component which returns a Node set, but is convertible (castable) to a String expression, boolean expression or VariantExpression
Field Summary
static intSINGLE_LEVEL
If this is set, then all nodes in the result of eval(x, c) are guaranteed to be at the same level of the tree.
static intSTAYS_IN_SUBTREE
If this is set, then all nodes in the result of eval(x, c) are guaranteed to be in the subtree rooted at x.
Method Summary
ConvertibleNodeSetExprcompose(ConvertibleNodeSetExpr expr)
Return an expression for this/expr
PatterngetChildrenNodePattern()
intgetOptimizeFlags()
ConvertibleBooleanExprmakeBooleanExpr()
ConvertibleNodeSetExprmakeNodeSetExpr()
ConvertibleStringExprmakeStringExpr()
ConvertibleVariantExprmakeVariantExpr()

Field Detail

SINGLE_LEVEL

static final int SINGLE_LEVEL
If this is set, then all nodes in the result of eval(x, c) are guaranteed to be at the same level of the tree. More precisely, define the level of a node to be the number of ancestors it has, and then define an expression to be single-level if and only if there exists an integer n such that for any node x, for any node y in the result of evaluating the expression with respect to x, the difference between the level of x and the level of y is equal to n. For example, the children axis is single-level but the descendants axis is not.

STAYS_IN_SUBTREE

static final int STAYS_IN_SUBTREE
If this is set, then all nodes in the result of eval(x, c) are guaranteed to be in the subtree rooted at x.

Method Detail

compose

ConvertibleNodeSetExpr compose(ConvertibleNodeSetExpr expr)
Return an expression for this/expr

getChildrenNodePattern

Pattern getChildrenNodePattern()

getOptimizeFlags

int getOptimizeFlags()

makeBooleanExpr

ConvertibleBooleanExpr makeBooleanExpr()

makeNodeSetExpr

ConvertibleNodeSetExpr makeNodeSetExpr()

makeStringExpr

ConvertibleStringExpr makeStringExpr()

makeVariantExpr

ConvertibleVariantExpr makeVariantExpr()