Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jamie Mansfield
asm
Commits
b954ed22
Commit
b954ed22
authored
Jan 08, 2006
by
andrei
Browse files
Moved access flags before inner class names just like for methods/fields
parent
7d83184b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/org/objectweb/asm/util/TraceClassVisitor.java
View file @
b954ed22
...
...
@@ -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 <init> ()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("hello");
* }
* }
* </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] <fully qualified class name or class
* file name >
*
*
* @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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment