Class Reducer.Context<D>

java.lang.Object
eu.bandm.tools.ramus.runtime2.Reducer.Context<D>
All Implemented Interfaces:
MessageReceiver<SimpleMessage<D>>, Environment
Enclosing class:
Reducer

public static class Reducer.Context<D> extends Object implements MessageReceiver<SimpleMessage<D>>, Environment
  • Constructor Details

  • Method Details

    • getMessages

      public MessageReceiver<SimpleMessage<D>> getMessages()
    • getLocation

      public Location<D> getLocation()
    • receive

      public void receive(SimpleMessage<D> message)
      Description copied from interface: MessageReceiver
      Evident.
      Specified by:
      receive in interface MessageReceiver<D>
      Parameters:
      message - the message to receive.
    • warning

      public void warning(String message, Object... args)
    • warning

      public void warning(Location<D> location, String message, Object... args)
    • warning

      public void warning(int level, String message, Object... args)
    • warning

      public void warning(int level, Location<D> location, String message, Object... args)
    • error

      public void error(String message, Object... args)
    • error

      public void error(Location<D> location, String message, Object... args)
    • hint

      public void hint(String message, Object... args)
    • hint

      public void hint(Location<D> location, String message, Object... args)
    • getValue

      public Data getValue()
      Specified by:
      getValue in interface Environment
    • get

      public Data get(Object key)
      Specified by:
      get in interface Environment
    • setValue

      public void setValue(Data value)
    • put

      public void put(Object key, Data value)
    • push

      public void push()
    • pop

      public void pop()
    • compute

      public <K, V> V compute(Object varKey, K mapKey, BiFunction<? super K,? super V,? extends V> remappingFunction)
    • computeIfAbsent

      public <K, V> V computeIfAbsent(Object varKey, K mapKey, Function<? super K,? extends V> fun)
    • abort

      public <X> X abort() throws Reducer.Abort
      Aborts the current creation of an AST node.

      This method never returns. It is suitable to use as the argument of a return instruction.

      Throws:
      Reducer.Abort - always