public class XPathParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
XPathParser.XPathTokenizer
A
TokenStream.Tokenizer implementation that parses single- and double-quoted strings,
symbols, words consisting of NCName s (as defined by the Namespaces in XML 1.0
specification), XPath comments,and other single-character tokens. |
Constructor and Description |
---|
XPathParser(TypeSystem context) |
public XPathParser(TypeSystem context)
public XPath.Component parseXPath(String xpath)
protected XPath.Component parseXPath(TokenStream tokens)
protected XPath.Component parseExpr(TokenStream tokens)
protected XPath.Component parseExprSingle(TokenStream tokens)
protected XPath.Component parseOrExpr(TokenStream tokens)
protected XPath.Component parseAndExpr(TokenStream tokens)
protected XPath.Component parseInstanceofExpr(TokenStream tokens)
protected XPath.Component parseTreatExpr(TokenStream tokens)
protected XPath.Component parseCastableExpr(TokenStream tokens)
protected XPath.Component parseCastExpr(TokenStream tokens)
protected XPath.Component parseComparisonExpr(TokenStream tokens)
protected XPath.Component parseValueComp(TokenStream tokens)
protected XPath.NodeComparisonOperator parseNodeComp(TokenStream tokens)
protected XPath.Component parseRangeExpr(TokenStream tokens)
protected XPath.Component parseAdditiveExpr(TokenStream tokens)
protected XPath.Component parseMultiplicativeExpr(TokenStream tokens)
protected XPath.Component parseUnaryExpr(TokenStream tokens)
protected XPath.Component parseUnionExpr(TokenStream tokens)
protected XPath.Component parseIntersectExceptExpr(TokenStream tokens)
protected XPath.Component parseValueExpr(TokenStream tokens)
protected XPath.PathExpression parsePathExpr(TokenStream tokens)
protected XPath.PathExpression parseRelativePathExpr(TokenStream tokens)
protected XPath.StepExpression parseStepExpr(TokenStream tokens)
protected XPath.AxisStep parseAxisStep(TokenStream tokens)
protected List<XPath.Component> parsePredicates(TokenStream tokens)
protected XPath.FilterStep parseFilterExpr(TokenStream tokens)
protected XPath.Component parsePrimaryExpr(TokenStream tokens)
protected XPath.ContextItem parseContextItemExpr(TokenStream tokens)
protected XPath.ParenthesizedExpression parseParenthesizedExpr(TokenStream tokens)
protected XPath.Literal parseNumericLiteral(TokenStream tokens)
protected XPath.Literal parseStringLiteral(TokenStream tokens)
protected XPath.FunctionCall parseFunctionCall(TokenStream tokens)
protected Operator parseGeneralComp(TokenStream tokens)
protected XPath.NodeTest parseNodeTest(TokenStream tokens)
protected XPath.NameTest parseNameTest(TokenStream tokens)
protected XPath.NameTest parseQName(TokenStream tokens)
protected String parseNCName(TokenStream tokens)
protected XPath.NameTest parseWildcard(TokenStream tokens)
protected XPath.NameTest parseItemType(TokenStream tokens)
protected XPath.NameTest parseAtomicType(TokenStream tokens)
protected XPath.KindTest parseKindTest(TokenStream tokens)
protected XPath.AnyKindTest parseAnyKindTest(TokenStream tokens)
protected XPath.ProcessingInstructionTest parsePITest(TokenStream tokens)
protected XPath.CommentTest parseCommentTest(TokenStream tokens)
protected XPath.TextTest parseTextTest(TokenStream tokens)
protected XPath.DocumentTest parseDocumentTest(TokenStream tokens)
protected XPath.ElementTest parseElementTest(TokenStream tokens)
protected XPath.SchemaElementTest parseSchemaElementTest(TokenStream tokens)
protected XPath.AttributeTest parseAttributeTest(TokenStream tokens)
protected XPath.SchemaAttributeTest parseSchemaAttributeTest(TokenStream tokens)
protected void parseSingleType(TokenStream tokens)
protected void parseSequenceType(TokenStream tokens)
protected XPath.OrderBy parseOrderBy(TokenStream tokens)
protected XPath.OrderBySpec parseOrderBySpec(TokenStream tokens)
protected String removeQuotes(String text)
text
- the input text; may not be nulltext
if there were no square brackets or quotesprotected XPath.Component collapse(XPath.Component component)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.