Interface Registrar

  • All Known Implementing Classes:
    DefaultDispatcher

    @Internal
    public interface Registrar
    An object which registers the functions that a Dispatcher calls.

    CEL Library Internals. Do Not Use.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  Registrar.BinaryFunction<T1,​T2>
      Interface to a typed binary function without activation argument.
      static interface  Registrar.Function
      Interface to a general function.
      static interface  Registrar.UnaryFunction<T>
      Interface to a typed unary function without activation argument.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> void add​(java.lang.String overloadId, java.lang.Class<T> argType, Registrar.UnaryFunction<T> function)
      Adds a unary function to the dispatcher.
      <T1,​T2>
      void
      add​(java.lang.String overloadId, java.lang.Class<T1> argType1, java.lang.Class<T2> argType2, Registrar.BinaryFunction<T1,​T2> function)
      Adds a binary function to the dispatcher.
      void add​(java.lang.String overloadId, java.util.List<java.lang.Class<?>> argTypes, Registrar.Function function)
      Adds a general function to the dispatcher.
    • Method Detail

      • add

        <T> void add​(java.lang.String overloadId,
                     java.lang.Class<T> argType,
                     Registrar.UnaryFunction<T> function)
        Adds a unary function to the dispatcher.
      • add

        <T1,​T2> void add​(java.lang.String overloadId,
                               java.lang.Class<T1> argType1,
                               java.lang.Class<T2> argType2,
                               Registrar.BinaryFunction<T1,​T2> function)
        Adds a binary function to the dispatcher.
      • add

        void add​(java.lang.String overloadId,
                 java.util.List<java.lang.Class<?>> argTypes,
                 Registrar.Function function)
        Adds a general function to the dispatcher.