public class Parser
extends java.lang.Object
Constructor | Description |
---|---|
Parser() |
Modifier and Type | Method | Description |
---|---|---|
static XPathExpression |
createExpr(java.lang.String exprString) |
Creates an Expr from the given String
|
static FunctionCall |
createFunctionCall(java.lang.String name) |
Creates the appropriate FunctionCall based on the given name
|
static XPathExpression |
createLiteralExpr(java.lang.String literal) |
Creates a literal expression, which simply evaluates
to the given string literal.
|
static MatchExpression |
createMatchExpr(java.lang.String matchString) |
Parses the a pattern String into a MatchExpr
|
static PathExpr |
createPathExpr(java.lang.String pattern) |
Creates a PathExpr from the string argument.
|
static SelectExpr |
createSelectExpr(java.lang.String selectString) |
Parses the a pattern String into a SelectExpr
|
static UnionExpr |
createUnionExpr(java.lang.String pattern) |
Creates a UnionExpr from the given string argument.
|
static void |
main(java.lang.String[] args) |
public static XPathExpression createExpr(java.lang.String exprString) throws XPathException
exprString
- the String to create the Expr fromInvalidExprException
- when a parsing error occursXPathException
public static XPathExpression createLiteralExpr(java.lang.String literal)
literal
- the string literal the literal expression
should evaluate to.public static FunctionCall createFunctionCall(java.lang.String name) throws XPathException
name
- the name of the function to callparams
- the List of Expr paramaters for the function callXPathException
public static MatchExpression createMatchExpr(java.lang.String matchString) throws XPathException
matchString
- the pattern string to create the MatchExpr fromInvalidExprException
XPathException
public static PathExpr createPathExpr(java.lang.String pattern) throws XPathException
pattern
- the string to create the PathExpr fromInvalidExprException
XPathException
public static SelectExpr createSelectExpr(java.lang.String selectString) throws XPathException
selectString
- the pattern string to create the SelectExpr fromXSLException
XPathException
public static UnionExpr createUnionExpr(java.lang.String pattern) throws XPathException
pattern
- the string to create the UnionExpr fromInvalidExprException
XPathException
public static void main(java.lang.String[] args) throws XPathException
XPathException