Package com.tonic.analysis.source.editor
Interface ExpressionEditor.FieldAccessReplacer
-
- 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.FieldAccessReplacer
Functional interface for field access replacement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Expressionreplace(EditorContext ctx, FieldAccessExpr access)Builds the expression that takes the field access's place.
-
-
-
Method Detail
-
replace
Expression replace(EditorContext ctx, FieldAccessExpr access)
Builds the expression that takes the field access's place.- Parameters:
ctx- the surrounding edit contextaccess- the matched field access- Returns:
- the replacement expression, or null to leave the access alone
-
-