Debian Codegraph @

net/sf/saxon/pattern/PatternParser.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.pattern;
9
10 import net.sf.saxon.expr.StaticContext;
11 import net.sf.saxon.trans.XPathException;
12
13 /**
14 * Interface to a parser of XSLT patterns. There are subclasses for XSLT 2.0 and XSLT 3.0 patterns
15 */
16 public interface PatternParser {
17
18 /**
19 * Parse a string representing an XSLT pattern
20 *
21 *
22 * @param pattern the pattern expressed as a String
23 * @param env the static context for the pattern
24 * @return a Pattern object representing the result of parsing
25 * @throws net.sf.saxon.trans.XPathException
26 * if the pattern contains a syntax error
27 */
28
29 Pattern parsePattern(String pattern, StaticContext env) throws XPathException;
30
31
32 }
33