void (final MethodVisitor mv) { new SwitchGenerator<String>() { @Override protected String getSwitchedValue(ReportingPlace place) { return place.descrPattern; } @Override void generateCaseBody(String descrPattern) { mv.visitLdcInsn(descrPattern); } }.generateSwitch(mv); }