Interface ExpressionHandler

  • 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 ExpressionHandler
    Base interface for handling expressions during AST editing.
    • Method Detail

      • handle

        Replacement handle​(EditorContext ctx,
                           Expression expr)
        Handle an expression during AST traversal.
        Parameters:
        ctx - the editing context with utilities and method info
        expr - the expression being visited
        Returns:
        the replacement action (keep, replace, remove, etc.)