01: package net.sf.saxon.expr;
02:
03: import net.sf.saxon.value.SequenceType;
04: import net.sf.saxon.value.Value;
05:
06: /**
07: * BindingReference is a interface used to mark references to a variable declaration. The main
08: * implementation is VariableReference, which represents a reference to a variable in an XPath
09: * expression, but it is also used to represent a reference to a variable in a saxon:assign instruction.
10: */
11:
12: public interface BindingReference {
13:
14: /**
15: * Fix up the static type of this variable reference; optionally, supply a constant value for
16: * the variable. Also supplies other static properties of the expression to which the variable
17: * is bound, for example whether it is an ordered node-set.
18: */
19:
20: public void setStaticType(SequenceType type, Value constantValue,
21: int properties);
22:
23: /**
24: * Fix up this binding reference to a binding
25: */
26:
27: public void fixup(Binding binding);
28:
29: }
30:
31: //
32: // The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
33: // you may not use this file except in compliance with the License. You may obtain a copy of the
34: // License at http://www.mozilla.org/MPL/
35: //
36: // Software distributed under the License is distributed on an "AS IS" basis,
37: // WITHOUT WARRANTY OF ANY KIND, either express or implied.
38: // See the License for the specific language governing rights and limitations under the License.
39: //
40: // The Original Code is: all this file.
41: //
42: // The Initial Developer of the Original Code is Michael H. Kay.
43: //
44: // Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
45: //
46: // Contributor(s): none.
47: //
|