@@ -118,7 +118,15 @@ class java_bytecode_convert_classt:public messaget
118
118
// see definition below for more info
119
119
static void add_array_types (symbol_tablet &symbol_table);
120
120
121
- static bool is_overlay_method (const methodt &method);
121
+ static bool is_overlay_method (const methodt &method)
122
+ {
123
+ return method.has_annotation (ID_overlay_method);
124
+ }
125
+
126
+ static bool is_ignored_method (const methodt &method)
127
+ {
128
+ return method.has_annotation (ID_ignored_method);
129
+ }
122
130
123
131
bool check_field_exists (
124
132
const fieldt &field,
@@ -455,6 +463,8 @@ void java_bytecode_convert_classt::convert(
455
463
{
456
464
for (const methodt &method : overlay_class.get ().methods )
457
465
{
466
+ if (is_ignored_method (method))
467
+ continue ;
458
468
const irep_idt method_identifier =
459
469
qualified_classname + " ." + id2string (method.name )
460
470
+ " :" + method.descriptor ;
@@ -496,6 +506,8 @@ void java_bytecode_convert_classt::convert(
496
506
}
497
507
for (const methodt &method : c.methods )
498
508
{
509
+ if (is_ignored_method (method))
510
+ continue ;
499
511
const irep_idt method_identifier=
500
512
qualified_classname + " ." + id2string (method.name )
501
513
+ " :" + method.descriptor ;
@@ -877,13 +889,6 @@ void java_bytecode_convert_classt::add_array_types(symbol_tablet &symbol_table)
877
889
}
878
890
}
879
891
880
- bool java_bytecode_convert_classt::is_overlay_method (const methodt &method)
881
- {
882
- return java_bytecode_parse_treet::find_annotation (
883
- method.annotations , ID_overlay_method)
884
- .has_value ();
885
- }
886
-
887
892
bool java_bytecode_convert_class (
888
893
const java_class_loadert::parse_tree_with_overlayst &parse_trees,
889
894
symbol_tablet &symbol_table,
0 commit comments