com.icl.saxon.expr

Class ExpressionParser

public final class ExpressionParser extends 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

Method Summary
static ExpressionmakeSystemFunction(String name)
Make a system function (one whose name has no prefix).
Expressionparse(String expression, StaticContext env)
Parse a string representing an expression
PatternparsePattern(String pattern, StaticContext env)
Parse a string representing a pattern

Method Detail

makeSystemFunction

public static Expression makeSystemFunction(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()

parse

public Expression parse(String expression, StaticContext env)
Parse a string representing an expression

Returns: an Expression object representing the result of parsing

UNKNOWN: the expression expressed as a String

parsePattern

public Pattern parsePattern(String pattern, StaticContext env)
Parse a string representing a pattern

Returns: a Pattern object representing the result of parsing

UNKNOWN: the pattern expressed as a String