Commit b954ed22 authored by andrei's avatar andrei
Browse files

Moved access flags before inner class names just like for methods/fields

parent 7d83184b
......@@ -48,14 +48,14 @@ import org.objectweb.asm.signature.SignatureReader;
* visitor chain to trace the class that is visited at a given point in this
* chain. This may be uselful for debugging purposes. <p> The trace printed when
* visiting the <tt>Hello</tt> class is the following: <p> <blockquote>
*
*
* <pre>
* // class version 49.0 (49)
* // access flags 33
* public class Hello {
*
* // compiled from: Hello.java
*
*
* // access flags 1
* public &lt;init&gt; ()V
* ALOAD 0
......@@ -63,7 +63,7 @@ import org.objectweb.asm.signature.SignatureReader;
* RETURN
* MAXSTACK = 1
* MAXLOCALS = 1
*
*
* // access flags 9
* public static main ([Ljava/lang/String;)V
* GETSTATIC java/lang/System out Ljava/io/PrintStream;
......@@ -74,20 +74,20 @@ import org.objectweb.asm.signature.SignatureReader;
* MAXLOCALS = 1
* }
* </pre>
*
*
* </blockquote> where <tt>Hello</tt> is defined by: <p> <blockquote>
*
*
* <pre>
* public class Hello {
*
*
* public static void main(String[] args) {
* System.out.println(&quot;hello&quot;);
* }
* }
* </pre>
*
*
* </blockquote>
*
*
* @author Eric Bruneton
* @author Eugene Kuleshov
*/
......@@ -110,9 +110,9 @@ public class TraceClassVisitor extends TraceAbstractVisitor implements
* Prints a disassembled view of the given class to the standard output. <p>
* Usage: TraceClassVisitor [-debug] &lt;fully qualified class name or class
* file name &gt;
*
*
* @param args the command line arguments.
*
*
* @throws Exception if the class cannot be found, or if an IO exception
* occurs.
*/
......@@ -152,7 +152,7 @@ public class TraceClassVisitor extends TraceAbstractVisitor implements
/**
* Constructs a new {@link TraceClassVisitor}.
*
*
* @param pw the print writer to be used to print the class.
*/
public TraceClassVisitor(final PrintWriter pw) {
......@@ -161,7 +161,7 @@ public class TraceClassVisitor extends TraceAbstractVisitor implements
/**
* Constructs a new {@link TraceClassVisitor}.
*
*
* @param cv the {@link ClassVisitor} to which this visitor delegates calls.
* May be <tt>null</tt>.
* @param pw the print writer to be used to print the class.
......@@ -312,13 +312,13 @@ public class TraceClassVisitor extends TraceAbstractVisitor implements
final int access)
{
buf.setLength(0);
buf.append(tab).append("// access flags ").append(access & ~Opcodes.ACC_SUPER).append('\n');
buf.append(tab).append("INNERCLASS ");
appendDescriptor(INTERNAL_NAME, name);
buf.append(' ');
appendDescriptor(INTERNAL_NAME, outerName);
buf.append(' ');
appendDescriptor(INTERNAL_NAME, innerName);
buf.append(' ').append(access & ~Opcodes.ACC_SUPER);
if ((access & Opcodes.ACC_ENUM) != 0) {
buf.append("enum ");
}
......@@ -482,7 +482,7 @@ public class TraceClassVisitor extends TraceAbstractVisitor implements
/**
* Appends a string representation of the given access modifiers to {@link
* #buf buf}.
*
*
* @param access some access modifiers.
*/
private void appendAccess(final int access) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment