Class AbstractRecordActorEnclosed

    • Constructor Detail

      • AbstractRecordActorEnclosed

        public AbstractRecordActorEnclosed()
    • Method Detail

      • isEnabled

        public abstract boolean isEnabled​(Tree tree)
        Returns whether the recording is active.
        Parameters:
        tree - the current tree
        Returns:
        true if active
      • doRecord

        protected abstract void doRecord​(Tree tree,
                                         TreePath[] paths,
                                         ActorHandler handler)
        Records the enclosing action.
        Parameters:
        tree - the context
        paths - the paths to add
        handler - the handler to enclose the paths with
      • record

        public void record​(Tree tree,
                           TreePath[] paths,
                           ActorHandler handler)
        Records the enclosing action.
        Parameters:
        tree - the context
        paths - the paths to add
        handler - the handler to enclose the paths with
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Default implementation does nothing.
        Specified by:
        cleanUp in interface CleanUpHandler
      • recordAll

        public static void recordAll​(Tree tree,
                                     TreePath[] paths,
                                     ActorHandler handler)
        Records the actor that was added.
        Parameters:
        tree - the context
        paths - the paths to add
        handler - the handler to enclose the paths with
      • cleanUpAll

        public static void cleanUpAll()
        Cleans up data structures, frees up memory, for all recorders.