( final int access, final String name, final String descriptor, final String signature, final Object value)
| 332 | } |
| 333 | |
| 334 | @Override |
| 335 | public Textifier visitField( |
| 336 | final int access, |
| 337 | final String name, |
| 338 | final String descriptor, |
| 339 | final String signature, |
| 340 | final Object value) { |
| 341 | FieldInstance field = cls.getField(name, descriptor, nameType); |
| 342 | if (field != null) text.add(String.format("<div id=\"%s\">", HtmlUtil.getId(field))); |
| 343 | |
| 344 | stringBuilder.setLength(0); |
| 345 | stringBuilder.append('\n'); |
| 346 | |
| 347 | if ((access & Opcodes.ACC_DEPRECATED) != 0) { |
| 348 | stringBuilder |
| 349 | .append(tab) |
| 350 | .append(DEPRECATED); |
| 351 | } |
| 352 | |
| 353 | stringBuilder.append(tab); |
| 354 | appendRawAccess(access); |
| 355 | |
| 356 | if (signature != null) { |
| 357 | stringBuilder.append(tab); |
| 358 | appendDescriptor(FIELD_SIGNATURE, signature); |
| 359 | stringBuilder.append(tab); |
| 360 | appendJavaDeclaration(name, signature); |
| 361 | } |
| 362 | |
| 363 | stringBuilder.append(tab); |
| 364 | appendAccess(access); |
| 365 | |
| 366 | appendDescriptor(FIELD_DESCRIPTOR, descriptor); |
| 367 | stringBuilder |
| 368 | .append(" <span class=\"field\">") |
| 369 | .append(name) |
| 370 | .append("</span>"); |
| 371 | if (value != null) { |
| 372 | stringBuilder.append(" = "); |
| 373 | |
| 374 | if (value instanceof String) { |
| 375 | stringBuilder |
| 376 | .append('\"') |
| 377 | .append(value) |
| 378 | .append('\"'); |
| 379 | } else { |
| 380 | stringBuilder.append(value); |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | stringBuilder.append('\n'); |
| 385 | text.add(stringBuilder.toString()); |
| 386 | if (field != null) text.add("</div>"); |
| 387 | |
| 388 | return addNewTextifier(null); |
| 389 | } |
| 390 | |
| 391 | @Override |
nothing calls this directly
no test coverage detected