Class Bindings


  • public class Bindings
    extends Object
    Variable bindings. Uses a map from variable name to Boolean value.
    Author:
    Herbert Prähofer
    • Field Detail

      • map

        private final Map<String,​Boolean> map
        Map from variable name to Boolean value.
    • Constructor Detail

      • Bindings

        public Bindings()
        Constructor creating an empty map.
    • Method Detail

      • get

        public boolean get​(String name)
        Returns the Boolean value for the variable. Returns false if variable does not exist.
        Parameters:
        name - the variable name
        Returns:
        the value; false if variable does not exist
      • set

        public void set​(String name,
                        boolean value)
        Sets the value for the variable
        Parameters:
        name - the variable name
        value - the value