Package com.tonic.analysis.source.editor
Editing a recovered AST by matching nodes and replacing them.
-
Interface Summary Interface Description ExpressionEditor.FieldAccessReplacer Functional interface for field access replacement.ExpressionEditor.MethodCallReplacer Functional interface for method call replacement.ExpressionEditor.NewExprReplacer Functional interface for new expression replacement. -
Class Summary Class Description ASTEditor Fluent editor that walks a method body, dispatching registered handlers to rewrite AST nodes.EditorContext Traversal context handed to AST editor handlers.ExpressionEditor Expression-only view over ASTEditor.Replacement The action an editor handler returns for a visited AST node: keep, replace, remove, or insert.StatementEditor Statement-only facade overASTEditor. -
Enum Summary Enum Description Replacement.Type The kind of action a replacement performs.