Debian Codegraph @

net/sf/saxon/trans/rules/RuleTarget.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.trans.rules;
9
10 import net.sf.saxon.trace.ExpressionPresenter;
11 import net.sf.saxon.trans.XPathException;
12
13 /**
14 * The target of a rule, typically a TemplateRule.
15 */
16 public interface RuleTarget {
17
18 /**
19 * Output diagnostic explanation to an ExpressionPresenter
20 * @param presenter the destination for the explanation
21 */
22
23 void export(ExpressionPresenter presenter) throws XPathException;
24
25 /**
26 * Register a rule for which this is the target
27 * @param rule a rule in which this is the target
28 */
29
30 void registerRule(Rule rule);
31 }
32