Debian Codegraph @

net/sf/saxon/expr/ContextSwitchingExpression.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;
9
10 /**
11 * Interface implemented by expressions that switch the context, for example A/B or A[B]
12 */
13 public interface ContextSwitchingExpression extends ContextOriginator {
14
15 /**
16 * Get the subexpression that sets the context item
17 *
18 * @return the subexpression that sets the context item, position, and size to each of its
19 * items in turn
20 */
21
22 Expression getSelectExpression();
23
24 /**
25 * Get the subexpression that is evaluated in the new context
26 *
27 * @return the subexpression evaluated in the context set by the controlling expression
28 */
29
30 Expression getActionExpression();
31 }
32