Debian Codegraph @

net/sf/saxon/expr/parser/ExpressionAction.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.expr.parser;
9
10 import net.sf.saxon.expr.Expression;
11 import net.sf.saxon.trans.XPathException;
12
13 /**
14 * General action class which can be used to process all nodes on an expression tree
15 */
16 public interface ExpressionAction {
17
18 /**
19 * Process an expression
20 * @param expression the expression to be processed
21 * @param result supplied value (of an appropriate type!) which can be updated to return results
22 * @return true if processing is now complete and further expressions do not need to be processed
23 * @throws XPathException if a failure occurs
24 */
25 boolean process(Expression expression, Object result) throws XPathException;
26
27 }
28