Skip to content
GitLab
Menu
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
3c6ed260
Commit
3c6ed260
authored
Jan 09, 2006
by
andrei
Browse files
Improved inner/outer class info view
parent
b954ed22
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/org/objectweb/asm/util/TraceClassVisitor.java
View file @
3c6ed260
...
...
@@ -273,7 +273,12 @@ public class TraceClassVisitor extends TraceAbstractVisitor implements
buf
.
setLength
(
0
);
buf
.
append
(
tab
).
append
(
"OUTERCLASS "
);
appendDescriptor
(
INTERNAL_NAME
,
owner
);
buf
.
append
(
' '
).
append
(
name
).
append
(
' '
);
// if enclosing name is null, so why should we show this info?
if
(
name
!=
null
)
{
buf
.
append
(
' '
).
append
(
name
).
append
(
' '
);
}
else
{
buf
.
append
(
' '
);
}
appendDescriptor
(
METHOD_DESCRIPTOR
,
desc
);
buf
.
append
(
'\n'
);
text
.
add
(
buf
.
toString
());
...
...
@@ -313,15 +318,17 @@ public class TraceClassVisitor extends TraceAbstractVisitor implements
{
buf
.
setLength
(
0
);
buf
.
append
(
tab
).
append
(
"// access flags "
).
append
(
access
&
~
Opcodes
.
ACC_SUPER
).
append
(
'\n'
);
buf
.
append
(
tab
).
append
(
"INNERCLASS "
);
buf
.
append
(
tab
);
appendAccess
(
access
);
buf
.
append
(
"INNERCLASS "
);
if
((
access
&
Opcodes
.
ACC_ENUM
)
!=
0
)
{
buf
.
append
(
"enum "
);
}
appendDescriptor
(
INTERNAL_NAME
,
name
);
buf
.
append
(
' '
);
appendDescriptor
(
INTERNAL_NAME
,
outerName
);
buf
.
append
(
' '
);
appendDescriptor
(
INTERNAL_NAME
,
innerName
);
if
((
access
&
Opcodes
.
ACC_ENUM
)
!=
0
)
{
buf
.
append
(
"enum "
);
}
buf
.
append
(
'\n'
);
text
.
add
(
buf
.
toString
());
...
...
@@ -519,5 +526,8 @@ public class TraceClassVisitor extends TraceAbstractVisitor implements
if
((
access
&
Opcodes
.
ACC_STRICT
)
!=
0
)
{
buf
.
append
(
"strictfp "
);
}
if
((
access
&
Opcodes
.
ACC_SYNTHETIC
)
!=
0
)
{
buf
.
append
(
"synthetic "
);
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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