Beispiel #1
0
  private List<Var> calcVars() {
    List<Var> vars = new ArrayList<>(4);
    // Only if not in parent.
    // A (var/value) binding may have been copied down to record it's NodeId.

    Binding b = idBinding.getParentBinding();

    Iterator<Var> iter = idBinding.iterator();
    for (Var v : idBinding) {
      if (b == null || !b.contains(v)) vars.add(v);
    }
    return vars;
  }
Beispiel #2
0
 public BindingTDB(BindingNodeId idBinding, NodeTable nodeTable) {
   // BindingNodeId contains the bindings actually used  copied down when created.
   super(idBinding.getParentBinding());
   this.idBinding = idBinding;
   this.nodeTable = nodeTable;
 }