Class AbstractScriptableHeapObject.AbstractScriptableHeaplet

    • Constructor Detail

      • AbstractScriptableHeaplet

        protected AbstractScriptableHeaplet()
    • Method Detail

      • newInstance

        protected abstract AbstractScriptableHeapObject<?> newInstance​(Script script,
                                                                       Heap heap)
                                                                throws HeapException
        Creates the new heap object instance using the provided script.
        Parameters:
        script - The compiled script.
        heap - The heap to look for bindings
        Returns:
        The new heap object instance using the provided script.
        Throws:
        HeapException - if an exception occurred during creation of the heap object or any of its dependencies.
        JsonValueException - if the heaplet (or one of its dependencies) has a malformed configuration.