Interface ExpressionEditor.MethodCallReplacer

  • Enclosing class:
    ExpressionEditor
    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 static interface ExpressionEditor.MethodCallReplacer
    Functional interface for method call replacement.
    • Method Detail

      • replace

        Expression replace​(EditorContext ctx,
                           MethodCallExpr call)
        Builds the expression that takes the call's place.
        Parameters:
        ctx - the surrounding edit context
        call - the matched call
        Returns:
        the replacement expression, or null to leave the call alone