| 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.instruct; |
| 9 | |
| 10 | import net.sf.saxon.expr.ContextOriginator; |
| 11 | |
| 12 | /** |
| 13 | * An interface satisfied by all instructions that invoke templates: apply-templates, |
| 14 | * call-template. apply-imports, next-match |
| 15 | */ |
| 16 | |
| 17 | public interface ITemplateCall extends ContextOriginator { |
| 18 | |
| 19 | /** |
| 20 | * Get the actual parameters passed to the called template |
| 21 | * |
| 22 | * @return the non-tunnel parameters |
| 23 | */ |
| 24 | |
| 25 | /*@NotNull*/ |
| 26 | WithParam[] getActualParams(); |
| 27 | |
| 28 | /** |
| 29 | * Get the tunnel parameters passed to the called template |
| 30 | * |
| 31 | * @return the tunnel parameters |
| 32 | */ |
| 33 | |
| 34 | /*@NotNull*/ |
| 35 | WithParam[] getTunnelParams(); |
| 36 | } |
| 37 |