119 } 120 } 121 if (ids.size() > 0) { 122 List<CPRefInfo> refInfos = new ArrayList<>(ids.size()); 123 for (int id : ids) { 124 refInfos.add(CPRefInfo.class.cast(cf.constant_pool.get(id))); 125 } 126 visitor.visit(cf, m, refInfos); 127 } 128 } 129 return true; 130 } 131 132 private ConstantPool.Visitor<Boolean,ConstantPool> cpVisitor = 133 new ConstantPool.Visitor<Boolean,ConstantPool>() 134 { 135 public Boolean visitClass(CONSTANT_Class_info info, ConstantPool cpool) { 136 return false; 137 } 138 139 public Boolean visitInterfaceMethodref(CONSTANT_InterfaceMethodref_info info, ConstantPool cpool) { 140 return filter.accept(cpool, info); 141 } 142 143 public Boolean visitMethodref(CONSTANT_Methodref_info info, ConstantPool cpool) { 144 return filter.accept(cpool, info); 145 } 146 147 public Boolean visitFieldref(CONSTANT_Fieldref_info info, ConstantPool cpool) { 148 return filter.accept(cpool, info); 149 } 150 151 public Boolean visitDouble(CONSTANT_Double_info info, ConstantPool cpool) { 152 return false; 153 } 154 155 public Boolean visitFloat(CONSTANT_Float_info info, ConstantPool cpool) { 156 return false; 157 } 158 159 public Boolean visitInteger(CONSTANT_Integer_info info, ConstantPool cpool) { 160 return false; 161 } 162 163 public Boolean visitInvokeDynamic(CONSTANT_InvokeDynamic_info info, ConstantPool cpool) { 164 return false; 165 } 166 167 public Boolean visitLong(CONSTANT_Long_info info, ConstantPool cpool) { 168 return false; 169 } 170 171 public Boolean visitNameAndType(CONSTANT_NameAndType_info info, ConstantPool cpool) { 172 return false; 173 } 174 175 public Boolean visitMethodHandle(CONSTANT_MethodHandle_info info, ConstantPool cpool) { 176 return false; 177 } 178 179 public Boolean visitMethodType(CONSTANT_MethodType_info info, ConstantPool cpool) { 180 return false; 181 } 182 183 public Boolean visitString(CONSTANT_String_info info, ConstantPool cpool) { 184 return false; 185 } 186 187 public Boolean visitUtf8(CONSTANT_Utf8_info info, ConstantPool cpool) { 188 return false; 189 } 190 }; 191 192 private Instruction.KindVisitor<Integer, List<Integer>> codeVisitor = 193 new Instruction.KindVisitor<Integer, List<Integer>>() 194 { 195 public Integer visitNoOperands(Instruction instr, List<Integer> p) { 196 return 0; 197 } 198 199 public Integer visitArrayType(Instruction instr, TypeKind kind, List<Integer> p) { 200 return 0; 201 } 202 | 119 } 120 } 121 if (ids.size() > 0) { 122 List<CPRefInfo> refInfos = new ArrayList<>(ids.size()); 123 for (int id : ids) { 124 refInfos.add(CPRefInfo.class.cast(cf.constant_pool.get(id))); 125 } 126 visitor.visit(cf, m, refInfos); 127 } 128 } 129 return true; 130 } 131 132 private ConstantPool.Visitor<Boolean,ConstantPool> cpVisitor = 133 new ConstantPool.Visitor<Boolean,ConstantPool>() 134 { 135 public Boolean visitClass(CONSTANT_Class_info info, ConstantPool cpool) { 136 return false; 137 } 138 139 public Boolean visitFieldref(CONSTANT_Fieldref_info info, ConstantPool cpool) { 140 return filter.accept(cpool, info); 141 } 142 143 public Boolean visitDouble(CONSTANT_Double_info info, ConstantPool cpool) { 144 return false; 145 } 146 147 public Boolean visitFloat(CONSTANT_Float_info info, ConstantPool cpool) { 148 return false; 149 } 150 151 public Boolean visitInteger(CONSTANT_Integer_info info, ConstantPool cpool) { 152 return false; 153 } 154 155 public Boolean visitInterfaceMethodref(CONSTANT_InterfaceMethodref_info info, ConstantPool cpool) { 156 return filter.accept(cpool, info); 157 } 158 159 public Boolean visitInvokeDynamic(CONSTANT_InvokeDynamic_info info, ConstantPool cpool) { 160 return false; 161 } 162 163 public Boolean visitLong(CONSTANT_Long_info info, ConstantPool cpool) { 164 return false; 165 } 166 167 public Boolean visitMethodHandle(CONSTANT_MethodHandle_info info, ConstantPool cpool) { 168 return false; 169 } 170 171 public Boolean visitMethodref(CONSTANT_Methodref_info info, ConstantPool cpool) { 172 return filter.accept(cpool, info); 173 } 174 175 public Boolean visitMethodType(CONSTANT_MethodType_info info, ConstantPool cpool) { 176 return false; 177 } 178 179 public Boolean visitModule(CONSTANT_Module_info info, ConstantPool cpool) { 180 return false; 181 } 182 183 public Boolean visitNameAndType(CONSTANT_NameAndType_info info, ConstantPool cpool) { 184 return false; 185 } 186 187 public Boolean visitPackage(CONSTANT_Package_info info, ConstantPool cpool) { 188 return false; 189 } 190 191 public Boolean visitString(CONSTANT_String_info info, ConstantPool cpool) { 192 return false; 193 } 194 195 public Boolean visitUtf8(CONSTANT_Utf8_info info, ConstantPool cpool) { 196 return false; 197 } 198 }; 199 200 private Instruction.KindVisitor<Integer, List<Integer>> codeVisitor = 201 new Instruction.KindVisitor<Integer, List<Integer>>() 202 { 203 public Integer visitNoOperands(Instruction instr, List<Integer> p) { 204 return 0; 205 } 206 207 public Integer visitArrayType(Instruction instr, TypeKind kind, List<Integer> p) { 208 return 0; 209 } 210 |