01: // Copyright (c) 1999 Per M.A. Bothner.
02: // This is free software; for terms and warranty disclaimer see ./COPYING.
03:
04: package gnu.mapping;
05:
06: /** Used for a stack of fluid bindings. */
07:
08: public class FluidBinding {
09: /** The Binding which this overrides. */
10: Binding binding;
11:
12: /** The current value of the Binding in this thread. */
13: public Object value;
14:
15: /** The maininin bindings active in this thread. */
16: FluidBinding previous;
17:
18: public FluidBinding(FluidBinding previous, Object value,
19: Binding binding) {
20: this .previous = previous;
21: this .value = value;
22: this .binding = binding;
23: }
24:
25: public static FluidBinding make(FluidBinding prev, Object val,
26: Binding bind) {
27: return new FluidBinding(prev, val, bind);
28: }
29: }
|