Class OverrideBuiltinRegistry

    • Constructor Detail

      • OverrideBuiltinRegistry

        public OverrideBuiltinRegistry​(BuiltinRegistry innerRegistry)
    • Method Detail

      • register

        public void register​(java.lang.String functor,
                             Builtin impl)
        Description copied from class: BuiltinRegistry
        Register an implementation for a given builtin functor.
        Specified by:
        register in class BuiltinRegistry
        Parameters:
        functor - the name of the functor used to invoke the builtin
        impl - the implementation of the builtin
      • register

        public void register​(Builtin impl)
        Description copied from class: BuiltinRegistry
        Register an implementation for a given builtin using its default name.
        Specified by:
        register in class BuiltinRegistry
        Parameters:
        impl - the implementation of the builtin
      • getImplementation

        public Builtin getImplementation​(java.lang.String functor)
        Description copied from class: BuiltinRegistry
        Find the implementation of the given builtin functor.
        Specified by:
        getImplementation in class BuiltinRegistry
        Parameters:
        functor - the name of the functor being invoked.
        Returns:
        a Builtin or null if there is none registered under that name
      • getImplementationByURI

        public Builtin getImplementationByURI​(java.lang.String uri)
        Description copied from class: BuiltinRegistry
        Find the implementation of the given builtin functor.
        Specified by:
        getImplementationByURI in class BuiltinRegistry
        Parameters:
        uri - the URI of the builtin to be retrieved
        Returns:
        a Builtin or null if there is none registered under that name