Package com.icl.saxon.expr
Class ExpressionParser
- java.lang.Object
-
- com.icl.saxon.expr.ExpressionParser
-
public final class ExpressionParser extends java.lang.Object
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 Constructor Description ExpressionParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Expression
makeSystemFunction(java.lang.String name)
Make a system function (one whose name has no prefix).Expression
parse(java.lang.String expression, StaticContext env)
Parse a string representing an expressionPattern
parsePattern(java.lang.String pattern, StaticContext env)
Parse a string representing a pattern
-
-
-
Method Detail
-
parse
public Expression parse(java.lang.String expression, StaticContext env) throws XPathException
Parse a string representing an expression- Returns:
- an Expression object representing the result of parsing
- Throws:
XPathException
-
parsePattern
public Pattern parsePattern(java.lang.String pattern, StaticContext env) throws XPathException
Parse a string representing a pattern- Returns:
- a Pattern object representing the result of parsing
- Throws:
XPathException
-
makeSystemFunction
public static Expression makeSystemFunction(java.lang.String name)
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()
-
-