Ejemplo n.º 1
0
 private void writeBinding(List<Binding> binding) {
   if (this.binding != null) binding.add(this.binding);
   if (parentEnvironment != null) parentEnvironment.writeBinding(binding);
 }
Ejemplo n.º 2
0
 public List<Binding> getBindings() {
   LinkedList<Binding> bindings = new LinkedList<>();
   writeBinding(bindings);
   return bindings;
 }