Package com.icl.saxon.expr
Class ExpressionParser
java.lang.Object
com.icl.saxon.expr.ExpressionParser
Parser for XSL expressions and patterns.
This code was originally inspired by James Clark's xt but has been totally rewritten (twice!)
- Author:
- Michael Kay
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Expression
makeSystemFunction
(String name) Make a system function (one whose name has no prefix).parse
(String expression, StaticContext env) Parse a string representing an expressionparsePattern
(String pattern, StaticContext env) Parse a string representing a pattern
-
Constructor Details
-
ExpressionParser
public ExpressionParser()
-
-
Method Details
-
parse
Parse a string representing an expression- Returns:
- an Expression object representing the result of parsing
- Throws:
XPathException
-
parsePattern
Parse a string representing a pattern- Returns:
- a Pattern object representing the result of parsing
- Throws:
XPathException
-
makeSystemFunction
Make a system function (one whose name has no prefix). Note this is static and public so it can also be used from extension-function-available()
-