Interface LoopHandler

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface LoopHandler
    Handler for loop statements (for, while, do-while, for-each).
    • Method Detail

      • handle

        Replacement handle​(EditorContext ctx,
                           Statement loop)
        Handle a loop statement.
        Parameters:
        ctx - the editing context
        loop - the loop statement
        Returns:
        the replacement action