Package javax.script

Interface Bindings

All Superinterfaces:
Map<String,Object>
All Known Implementing Classes:
SimpleBindings

public interface Bindings extends Map<String,Object>
A mapping of key/value pairs, all of whose keys are Strings.
Since:
1.6
  • Method Details

    • put

      Object put(String name, Object value)
      Set a named value.
      Specified by:
      put in interface Map<String,Object>
      Parameters:
      name - The name associated with the value.
      value - The value associated with the name.
      Returns:
      The value previously associated with the given name. Returns null if no value was previously associated with the name.
      Throws:
      NullPointerException - if the name is null.
      IllegalArgumentException - if the name is empty String.
    • putAll

      void putAll(Map<? extends String,? extends Object> toMerge)
      Adds all the mappings in a given Map to this Bindings.
      Specified by: