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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Replacementhandle(EditorContext ctx, Expression expr)Handle an expression during AST traversal.
-
-
-
Method Detail
-
handle
Replacement handle(EditorContext ctx, Expression expr)
Handle an expression during AST traversal.- Parameters:
ctx- the editing context with utilities and method infoexpr- the expression being visited- Returns:
- the replacement action (keep, replace, remove, etc.)
-
-