Class ModuleImpl

  • All Implemented Interfaces:
    Module

    public class ModuleImpl
    extends java.lang.Object
    implements Module
    In-memory module.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Map<java.lang.String,​Function> functions  
    • Constructor Summary

      Constructors 
      Constructor Description
      ModuleImpl​(java.util.Map<java.lang.String,​Function> functions)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Callable getCallable​(java.lang.String name)
      Returns the function with the given name.
      • Methods inherited from class java.lang.Object

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

      • functions

        java.util.Map<java.lang.String,​Function> functions
    • Constructor Detail

      • ModuleImpl

        public ModuleImpl​(java.util.Map<java.lang.String,​Function> functions)
    • Method Detail

      • getCallable

        public Callable getCallable​(java.lang.String name)
        Description copied from interface: Module
        Returns the function with the given name. The return value is a Callable, because the method may also return a macro.
        Specified by:
        getCallable in interface Module