Interface Environment

All Known Implementing Classes:
ReducerFactory.Context, State

public interface Environment
Interface of semantic environments.

Usually environments are backed by a State.

  • Method Summary

    Modifier and Type
    Method
    Description
    get(Object key)
    Returns the current value assigned to the given key.
    Returns the current accumulator value.
  • Method Details

    • getValue

      Data getValue()
      Returns the current accumulator value.
      Returns:
      the current accumulator value
    • get

      @Opt Data get(Object key)
      Returns the current value assigned to the given key.
      Parameters:
      key - the key
      Returns:
      the current value assigned to key, or null if there is no entry for key
      Throws:
      NullPointerException - if key is null