Package net.sf.saxon.expr.parser
Class RebindingMap
java.lang.Object
net.sf.saxon.expr.parser.RebindingMap
A map from old bindings to new bindings, maintained during a copy() operation applied
to an expression tree. When local variable bindings are copied, the mapping from old to
new binding can be added to the list; when local variable references are encountered,
the binding can be switched from the old binding to the new.
Bindings are compared strictly using object identity. Some classes that implement the
Binding interface have their own equals() method that could return true for two
bindings that need to be treated as distinct.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RebindingMap
public RebindingMap()
-
-
Method Details
-
put
Add an entry to the binding map- Parameters:
oldBinding
- the existing bindingnewBinding
- the replacement binding
-
get
Get the new binding corresponding to an existing binding if there is one- Parameters:
oldBinding
- the existing binding- Returns:
- the new binding if one exists, or null otherwise
-