public final String toString( final ConstantPool cp ) { return toString(cp, true); }
public final String toString(ConstantPool cp) { return toString(cp, true); }
/** * @return String representation of code chunk. */ public final String toString( final boolean verbose ) { final StringBuilder buf = new StringBuilder(100); // CHECKSTYLE IGNORE MagicNumber buf.append("Code(max_stack = ").append(max_stack).append(", max_locals = ").append( max_locals).append(", code_length = ").append(code.length).append(")\n").append( Utility.codeToString(code, super.getConstantPool(), 0, -1, verbose)); if (exception_table.length > 0) { buf.append("\nException handler(s) = \n").append("From\tTo\tHandler\tType\n"); for (final CodeException exception : exception_table) { buf.append(exception.toString(super.getConstantPool(), verbose)).append("\n"); } } if (attributes.length > 0) { buf.append("\nAttribute(s) = "); for (final Attribute attribute : attributes) { buf.append("\n").append(attribute); } } return buf.toString(); }
/** * @return String representation of code chunk. */ public final String toString(boolean verbose) { StringBuffer buf; buf = new StringBuffer("Code(max_stack = " + max_stack + ", max_locals = " + max_locals + ", code_length = " + code_length + ")\n" + Utility.codeToString(code, constant_pool, 0, -1, verbose)); if(exception_table_length > 0) { buf.append("\nException handler(s) = \n" + "From\tTo\tHandler\tType\n"); for(int i=0; i < exception_table_length; i++) buf.append(exception_table[i].toString(constant_pool, verbose) + "\n"); } if(attributes_count > 0) { buf.append("\nAttribute(s) = \n"); for(int i=0; i < attributes_count; i++) buf.append(attributes[i].toString() + "\n"); } return buf.toString(); }
System.out.println(ce.toString() + " " + exceptionType);