public class SelectionParser extends XPathParser
XPathParser.NestedLocation
allowXPath30Syntax, allowXPath31Syntax, catchDepth, charChecker, codeInjector, env, EXTENDED_ITEM_TYPE, language, languageVersion, qNameParser, rangeVariables, scanOnly, SEQUENCE_TYPE, t, XPATH, XQUERY, XSLT_PATTERN
Constructor and Description |
---|
SelectionParser() |
Modifier and Type | Method and Description |
---|---|
protected Expression |
parseRelativePath()
Parse a relative path (a sequence of steps).
|
Pattern |
parseSelector(String expression,
StaticContext env,
boolean isField)
Parse a string representing the restricted XPath expression allowed
in an XML Schema selector or field attribute
|
protected Expression |
parseStepExpression()
Override the general XPath parsing of a StepExpression to support the simpler
kind of Step used in XML Schema selectors
|
protected Expression |
parseUnionExpression() |
atStartOfRelativePath, checkAnnotations, checkLanguageVersion30, checkLanguageVersion31, currentTokenDisplay, customizeTokenizer, declareRangeVariable, disallowedAtStartOfRelativePath, expect, findRangeVariable, getCodeInjector, getLanguage, getMissingFunctionExplanation, getQNameParser, getRangeVariables, getStaticContext, getTokenizer, grumble, grumble, grumble, grumble, isAllowAbsentExpression, isAllowXPath31Syntax, isKeyword, isNamespaceTestAllowed, isReservedFunctionName30, isReservedFunctionName31, isReservedInQuery, makeCurriedFunction, makeLocalNameTest, makeLocation, makeNameCode, makeNamespaceTest, makeNameTest, makeNodeName, makeStringLiteral, makeStructuredQName, makeStructuredQNameSilently, makeTracer, nextToken, normalizeEQName, parse, parseAnnotations, parseAnnotationsList, parseArrayCurlyConstructor, parseArrayItemType, parseArraySquareConstructor, parseArrowPostfix, parseBasicStep, parseBinaryExpression, parseConstructor, parseDynamicFunctionCall, parseExpression, parseExprSingle, parseExtendedItemType, parseExtendedSequenceType, parseExtensionExpression, parseFLWORExpression, parseFunctionArgument, parseFunctionCall, parseFunctionItemType, parseInlineFunction, parseItemType, parseLookup, parseMapExpression, parseMapItemType, parseNamedFunctionReference, parseNodeTest, parseNumericLiteral, parseParenthesizedExpression, parsePathExpression, parsePredicate, parseRemainingPath, parseSequenceType, parseSequenceType, parseSimpleMappingExpression, parseStepExpression, parseStringLiteral, parseStringTemplate, parseSwitchExpression, parseTryCatchExpression, parseTypeswitchExpression, parseValidateExpression, parseVariableReference, reportMissingFunction, resolveFunctionName, setAllowAbsentExpression, setCatchDepth, setCodeInjector, setLanguage, setLocation, setLocation, setLocation, setQNameParser, setRangeVariables, setRangeVariableStack, setScanOnly, testPermittedAxis, undeclareRangeVariable, unescape, warning, whyDisallowedType
public Pattern parseSelector(String expression, StaticContext env, boolean isField) throws XPathException
expression
- the expression expressed as a Stringenv
- the static context for the expressionisField
- true if the attribute is a "field" attribute, false if
it is a "selector" attributeXPathException
- if the expression contains a syntax errorprotected Expression parseUnionExpression() throws XPathException
XPathException
protected Expression parseRelativePath() throws XPathException
XPathParser
parseRelativePath
in class XPathParser
XPathException
- if any error is encounteredprotected Expression parseStepExpression() throws XPathException
XPathException
- if parsing failsCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.