src/share/classes/jdk/internal/org/objectweb/asm/util/Textifier.java

Print this page




 426         if (signature != null) {
 427             buf.append(tab);
 428             appendDescriptor(METHOD_SIGNATURE, signature);
 429 
 430             TraceSignatureVisitor v = new TraceSignatureVisitor(0);
 431             SignatureReader r = new SignatureReader(signature);
 432             r.accept(v);
 433             String genericDecl = v.getDeclaration();
 434             String genericReturn = v.getReturnType();
 435             String genericExceptions = v.getExceptions();
 436 
 437             buf.append(tab).append("// declaration: ").append(genericReturn)
 438                     .append(' ').append(name).append(genericDecl);
 439             if (genericExceptions != null) {
 440                 buf.append(" throws ").append(genericExceptions);
 441             }
 442             buf.append('\n');
 443         }
 444 
 445         buf.append(tab);
 446         appendAccess(access);
 447         if ((access & Opcodes.ACC_NATIVE) != 0) {
 448             buf.append("native ");
 449         }
 450         if ((access & Opcodes.ACC_VARARGS) != 0) {
 451             buf.append("varargs ");
 452         }
 453         if ((access & Opcodes.ACC_BRIDGE) != 0) {
 454             buf.append("bridge ");
 455         }
 456         if ((this.access & Opcodes.ACC_INTERFACE) != 0
 457                 && (access & Opcodes.ACC_ABSTRACT) == 0
 458                 && (access & Opcodes.ACC_STATIC) == 0) {
 459             buf.append("default ");
 460         }
 461 
 462         buf.append(name);
 463         appendDescriptor(METHOD_DESCRIPTOR, desc);
 464         if (exceptions != null && exceptions.length > 0) {
 465             buf.append(" throws ");
 466             for (int i = 0; i < exceptions.length; ++i) {




 426         if (signature != null) {
 427             buf.append(tab);
 428             appendDescriptor(METHOD_SIGNATURE, signature);
 429 
 430             TraceSignatureVisitor v = new TraceSignatureVisitor(0);
 431             SignatureReader r = new SignatureReader(signature);
 432             r.accept(v);
 433             String genericDecl = v.getDeclaration();
 434             String genericReturn = v.getReturnType();
 435             String genericExceptions = v.getExceptions();
 436 
 437             buf.append(tab).append("// declaration: ").append(genericReturn)
 438                     .append(' ').append(name).append(genericDecl);
 439             if (genericExceptions != null) {
 440                 buf.append(" throws ").append(genericExceptions);
 441             }
 442             buf.append('\n');
 443         }
 444 
 445         buf.append(tab);
 446         appendAccess(access & ~Opcodes.ACC_VOLATILE);
 447         if ((access & Opcodes.ACC_NATIVE) != 0) {
 448             buf.append("native ");
 449         }
 450         if ((access & Opcodes.ACC_VARARGS) != 0) {
 451             buf.append("varargs ");
 452         }
 453         if ((access & Opcodes.ACC_BRIDGE) != 0) {
 454             buf.append("bridge ");
 455         }
 456         if ((this.access & Opcodes.ACC_INTERFACE) != 0
 457                 && (access & Opcodes.ACC_ABSTRACT) == 0
 458                 && (access & Opcodes.ACC_STATIC) == 0) {
 459             buf.append("default ");
 460         }
 461 
 462         buf.append(name);
 463         appendDescriptor(METHOD_DESCRIPTOR, desc);
 464         if (exceptions != null && exceptions.length > 0) {
 465             buf.append(" throws ");
 466             for (int i = 0; i < exceptions.length; ++i) {