com.jclark.xsl.expr
public class ExprParser extends ExprTokenizer implements NamespaceConstants
Method Summary | |
---|---|
static boolean | functionAvailable(Name name, ExprContext context) |
static NodeSetExpr | getChildrenExpr() |
ConvertibleExpr | makeRelationalExpr(Relation rel, ConvertibleExpr e1, ConvertibleExpr e2)
A ConvertibleExpr allows for the casting of
one type to another for the purpose of making a comparison |
static BooleanExpr | parseBooleanExpr(Node node, String expr, VariableSet locals)
parse an XPath expression which is to be
used in a context in which a Boolean is expected |
static NodeSetExpr | parseNodeSetExpr(Node node, String expr, VariableSet locals)
parse an XPath expression which is to be
used in a context in which a NodeSet is expected
i.e. for the "select" attribute of an "xsl:apply-templates" |
static NumberExpr | parseNumberExpr(Node node, String expr, VariableSet locals)
parse an XPath expression which is to be
used in a context in which a Number is expected |
static TopLevelPattern | parsePattern(Node node, String pattern)
parse an XPath match Pattern |
static TopLevelPattern | parsePattern(Node node, String pattern, VariableSet locals)
parse an XPath match pattern (with some variables! |
static StringExpr | parseStringExpr(Node node, String expr, VariableSet locals)
parse an XPath expression which is to be
used in a context in which a String is expected |
static StringExpr | parseValueExpr(Node node, String value, VariableSet locals)
parse an XSLT attribute value template (which may include
XPath expression(s) enclosed in curlybraces "{" "}") |
static VariantExpr | parseVariantExpr(Node node, String expr, VariableSet locals)
parse an XPath expression which is to be
used in a context in which a Variant (xsl:variable, xsl:param)
is expected |
Parameters: node represents the node in the stylesheet with the expression we're parsing. Used for plugging the location in any Exception we might throw xsl:number allows variables in the "count" and "from" attributes