org.exolab.adaptx.xpath.engine
public class Parser extends Object
Version: $Revision: 4090 $ $Date: 2004-01-23 20:21:23 -0500 (Fri, 23 Jan 2004) $
Method Summary | |
---|---|
static XPathExpression | createExpr(String exprString)
Creates an Expr from the given String |
static FunctionCall | createFunctionCall(String name)
Creates the appropriate FunctionCall based on the given name |
static XPathExpression | createLiteralExpr(String literal)
Creates a literal expression, which simply evaluates
to the given string literal.
|
static MatchExpression | createMatchExpr(String matchString)
Parses the a pattern String into a MatchExpr |
static PathExpr | createPathExpr(String pattern)
Creates a PathExpr from the string argument. |
static SelectExpr | createSelectExpr(String selectString)
Parses the a pattern String into a SelectExpr |
static UnionExpr | createUnionExpr(String pattern)
Creates a UnionExpr from the given string argument. |
static void | main(String[] args) |
Parameters: exprString the String to create the Expr from
Returns: the new Expr
Throws: InvalidExprException when a parsing error occurs
Parameters: name the name of the function to call params the List of Expr paramaters for the function call
Returns: the new FunctionCall
Parameters: literal the string literal the literal expression should evaluate to.
Returns: an XPathExpression which will evaluate to the given string literal.
Parameters: matchString the pattern string to create the MatchExpr from
Returns: the new MatchExpr
Throws: InvalidExprException
Parameters: pattern the string to create the PathExpr from
Returns: the new PathExpr
Throws: InvalidExprException
Parameters: selectString the pattern string to create the SelectExpr from
Returns: the new SelectExpr
Throws: XSLException
Parameters: pattern the string to create the UnionExpr from
Returns: the new UnionExpr
Throws: InvalidExprException