Class MapTypeContext

  • All Implemented Interfaces:
    com.yahoo.tensor.evaluation.TypeContext<Reference>

    public class MapTypeContext
    extends java.lang.Object
    implements com.yahoo.tensor.evaluation.TypeContext<Reference>
    A context which only contains type information.
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      MapTypeContext()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<Reference,​com.yahoo.tensor.TensorType> bindings()
      Returns an unmodifiable map of the bindings in this
      com.yahoo.tensor.TensorType getType​(Reference reference)  
      com.yahoo.tensor.TensorType getType​(java.lang.String reference)  
      void setType​(Reference reference, com.yahoo.tensor.TensorType type)  
      • Methods inherited from class java.lang.Object

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

      • MapTypeContext

        public MapTypeContext()
    • Method Detail

      • setType

        public void setType​(Reference reference,
                            com.yahoo.tensor.TensorType type)
      • getType

        public com.yahoo.tensor.TensorType getType​(java.lang.String reference)
        Specified by:
        getType in interface com.yahoo.tensor.evaluation.TypeContext<Reference>
      • getType

        public com.yahoo.tensor.TensorType getType​(Reference reference)
        Specified by:
        getType in interface com.yahoo.tensor.evaluation.TypeContext<Reference>
      • bindings

        public java.util.Map<Reference,​com.yahoo.tensor.TensorType> bindings()
        Returns an unmodifiable map of the bindings in this