|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xpath.parser.ExpressionParser
An XPath expression parser.
Field Summary |
Fields inherited from interface jd.xml.xpath.parser.TokenConstants |
AT, AXISNAME, BRACKET_CLOSE, BRACKET_OPEN, COMMA, DOT, DOTDOT, END_OF_EXPRESSION, EQUALS, GREATER, GREATER_EQUALS, LESS, LESS_EQUALS, LITERAL, MAX, MINUS, MULTIPLY, NAME, NOT_EQUALS, NUMBER, PARENTHESIS_CLOSE, PARENTHESIS_OPEN, PLUS, SLASH, SLASHSLASH, UNDEFINED, UNION, VARIABLE_REFERENCE |
Constructor Summary | |
ExpressionParser()
Create an ExpressionParser using the default XPath function library |
|
ExpressionParser(XPathParseContext context)
Create a ExpressionParser using the given FunctionLibrary. |
Method Summary | |
protected Expression |
createFunction(Scanner scanner,
String functionName,
Expression[] arguments)
Create a function call expression for a function with the given name and arguments. |
protected String |
getNamespaceUri(Scanner scanner,
String prefix)
Return the namespace uri for the given prefix. |
Expression |
parseExpression(Scanner scanner)
Parse the production rule: Expr ::= OrExpr |
Expression |
parseExpression(String expression)
|
NodeNameTest |
parseNodeNameTest(Scanner scanner,
String qname,
boolean useNamePool)
|
protected NodeTest |
parseNodeTest(Scanner scanner)
|
protected NodeTest |
parseNodeTest(Scanner scanner,
String name)
|
NodeTest |
parseNodeTest(String nodeTestString)
|
protected VariableReference |
parseVariableReference(Scanner scanner)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExpressionParser()
public ExpressionParser(XPathParseContext context)
Method Detail |
public Expression parseExpression(String expression) throws XPathParseException
XPathParseException
public Expression parseExpression(Scanner scanner) throws XPathParseException
XPathParseException
protected VariableReference parseVariableReference(Scanner scanner) throws XPathParseException
XPathParseException
protected Expression createFunction(Scanner scanner, String functionName, Expression[] arguments) throws XPathParseException
XPathParseException
public NodeTest parseNodeTest(String nodeTestString) throws XPathParseException
XPathParseException
protected NodeTest parseNodeTest(Scanner scanner) throws XPathParseException
XPathParseException
protected NodeTest parseNodeTest(Scanner scanner, String name) throws XPathParseException
XPathParseException
public NodeNameTest parseNodeNameTest(Scanner scanner, String qname, boolean useNamePool) throws XPathParseException
XPathParseException
protected String getNamespaceUri(Scanner scanner, String prefix) throws XPathParseException
XPathParseException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |