1527 e.add(x.getCpString(attr.main_class_index));
1528 e.trimToSize();
1529 p.add(e);
1530 return null;
1531 }
1532
1533 @Override
1534 public Element visitModuleResolution(ModuleResolution_attribute attr, Element p) {
1535 Element e = new Element("ModuleResolution");
1536 e.setAttr("flags", Integer.toString(attr.resolution_flags));
1537 e.trimToSize();
1538 p.add(e);
1539 return null;
1540 }
1541
1542 @Override
1543 public Element visitModuleTarget(ModuleTarget_attribute attr, Element p) {
1544 Element e = new Element(x.getCpString(attr.attribute_name_index));
1545 e.add(x.getCpString(attr.os_name_index));
1546 e.add(x.getCpString(attr.os_arch_index));
1547 e.add(x.getCpString(attr.os_version_index));
1548 e.trimToSize();
1549 p.add(e);
1550 return null;
1551 }
1552 }
1553
1554 class StackMapVisitor implements StackMapTable_attribute.stack_map_frame.Visitor<Element, Void> {
1555
1556 final ClassFile cf;
1557 final ClassReader x;
1558 final Element parent;
1559
1560 public StackMapVisitor(ClassReader x, ClassFile cf, Element parent) {
1561 this.x = x;
1562 this.cf = cf;
1563 this.parent = parent;
1564 }
1565
1566 public Element visit(StackMapTable_attribute.stack_map_frame frame) {
1567 return frame.accept(this, null);
|
1527 e.add(x.getCpString(attr.main_class_index));
1528 e.trimToSize();
1529 p.add(e);
1530 return null;
1531 }
1532
1533 @Override
1534 public Element visitModuleResolution(ModuleResolution_attribute attr, Element p) {
1535 Element e = new Element("ModuleResolution");
1536 e.setAttr("flags", Integer.toString(attr.resolution_flags));
1537 e.trimToSize();
1538 p.add(e);
1539 return null;
1540 }
1541
1542 @Override
1543 public Element visitModuleTarget(ModuleTarget_attribute attr, Element p) {
1544 Element e = new Element(x.getCpString(attr.attribute_name_index));
1545 e.add(x.getCpString(attr.os_name_index));
1546 e.add(x.getCpString(attr.os_arch_index));
1547 e.trimToSize();
1548 p.add(e);
1549 return null;
1550 }
1551 }
1552
1553 class StackMapVisitor implements StackMapTable_attribute.stack_map_frame.Visitor<Element, Void> {
1554
1555 final ClassFile cf;
1556 final ClassReader x;
1557 final Element parent;
1558
1559 public StackMapVisitor(ClassReader x, ClassFile cf, Element parent) {
1560 this.x = x;
1561 this.cf = cf;
1562 this.parent = parent;
1563 }
1564
1565 public Element visit(StackMapTable_attribute.stack_map_frame frame) {
1566 return frame.accept(this, null);
|