| //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
| // Copyright (c) 2018-2023 Saxonica Limited | |
| // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. | |
| // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
| // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. | |
| //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
| package net.sf.saxon.expr; | |
| /** | |
| * Binding for local variables and parameters: anything that is allocated a slot on the XPathContext | |
| * stack frame. | |
| */ | |
| public interface LocalBinding extends Binding { | |
| /** | |
| * Return the slot number of the variable held on the local stack frame | |
| * | |
| * @return the slot number on the local stack frame | |
| */ | |
| int getLocalSlotNumber(); | |
| /** | |
| * Say that the bound value has the potential to be indexed | |
| */ | |
| void setIndexedVariable(); | |
| /** | |
| * Ask whether the binding is to be indexed | |
| * | |
| * @return true if the variable value can be indexed | |
| */ | |
| boolean isIndexedVariable(); | |
| } | |