Class DataflowActorInterpreter.SingleTokenReaderThunk

  • All Implemented Interfaces:
    caltrop.interpreter.environment.Environment.VariableContainer
    Enclosing class:
    DataflowActorInterpreter

    protected static class DataflowActorInterpreter.SingleTokenReaderThunk
    extends java.lang.Object
    implements caltrop.interpreter.environment.Environment.VariableContainer
    A single token reader thunk encapsulates the operation of reading a single token from a specified channel. This allows us to defer the reading operation to the time when the token is actually needed.
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleTokenReaderThunk​(caltrop.interpreter.InputChannel channel, int index)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void freeze()  
      java.lang.Object value()  
      java.lang.Object value​(java.lang.Object[] location)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingleTokenReaderThunk

        public SingleTokenReaderThunk​(caltrop.interpreter.InputChannel channel,
                                      int index)
    • Method Detail

      • value

        public java.lang.Object value()
        Specified by:
        value in interface caltrop.interpreter.environment.Environment.VariableContainer
      • value

        public java.lang.Object value​(java.lang.Object[] location)
        Specified by:
        value in interface caltrop.interpreter.environment.Environment.VariableContainer
      • freeze

        public void freeze()
        Specified by:
        freeze in interface caltrop.interpreter.environment.Environment.VariableContainer