Class BindingFactory


  • public class BindingFactory
    extends java.lang.Object
    • Field Detail

      • noParent

        public static final Binding noParent
    • Constructor Detail

      • BindingFactory

        public BindingFactory()
    • Method Detail

      • empty

        public static final Binding empty()
      • binding

        public static Binding binding()
        Create a binding of no pairs, with no parent. A root binding.
      • binding

        public static Binding binding​(Binding parent)
        Create a binding of no pairs
      • binding

        public static Binding binding​(Var var,
                                      Node node)
        Create a binding of one pair
      • binding

        public static Binding binding​(Var var1,
                                      Node node1,
                                      Var var2,
                                      Node node2)
        Create a binding of two pairs
      • binding

        public static Binding binding​(Var var1,
                                      Node node1,
                                      Var var2,
                                      Node node2,
                                      Var var3,
                                      Node node3)
        Create a binding of three pairs
      • binding

        public static Binding binding​(Binding parent,
                                      Var var,
                                      Node node)
        Create a binding of one (var, value) pair
      • binding

        public static Binding binding​(Binding parent,
                                      Var var1,
                                      Node node1,
                                      Var var2,
                                      Node node2)
        Create a binding of two (var, value) pairs
      • binding

        public static Binding binding​(Binding parent,
                                      Var var1,
                                      Node node1,
                                      Var var2,
                                      Node node2,
                                      Var var3,
                                      Node node3)
        Create a binding of three (var, value) pairs
      • root

        public static Binding root()
        Create a root binding. A root binding has no parent nor var/node pairs with aa distinctive type/toString.
      • copy

        public static Binding copy​(Binding b)
        Create a new Binding as a copy of an existing one. Additionally, it guarantees to touch each element of the binding.