Package com.android.dx.command.dump
Class DotDumper
java.lang.Object
com.android.dx.command.dump.DotDumper
- All Implemented Interfaces:
ParseObserver
Dumps the pred/succ graph of methods into a format compatible
with the popular graph utility "dot".
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeIndent
(int indentDelta) Indicate that the level of indentation for a dump should increase or decrease (positive or negative argument, respectively).void
endParsingMember
(ByteArray bytes, int offset, String name, String descriptor, Member member) Indicate that a particular member is no longer being parsed.void
Indicate that some parsing happened.protected boolean
shouldDumpMethod
(String name) void
startParsingMember
(ByteArray bytes, int offset, String name, String descriptor) Indicate that a particular member is now being parsed.
-
Method Details
-
shouldDumpMethod
- Parameters:
name
- method name- Returns:
- true if this method should be dumped
-
changeIndent
public void changeIndent(int indentDelta) Description copied from interface:ParseObserver
Indicate that the level of indentation for a dump should increase or decrease (positive or negative argument, respectively).- Specified by:
changeIndent
in interfaceParseObserver
- Parameters:
indentDelta
- the amount to change indentation
-
parsed
Description copied from interface:ParseObserver
Indicate that some parsing happened.- Specified by:
parsed
in interfaceParseObserver
- Parameters:
bytes
-non-null;
the source that was parsedoffset
- offset intobytes
for what was parsedlen
- number of bytes parsedhuman
-non-null;
human form for what was parsed
-
startParsingMember
Indicate that a particular member is now being parsed.- Specified by:
startParsingMember
in interfaceParseObserver
- Parameters:
bytes
-non-null;
the source that is being parsedoffset
- offset intobytes
for the start of the membername
-non-null;
name of the memberdescriptor
-non-null;
descriptor of the member
-
endParsingMember
public void endParsingMember(ByteArray bytes, int offset, String name, String descriptor, Member member) Description copied from interface:ParseObserver
Indicate that a particular member is no longer being parsed.- Specified by:
endParsingMember
in interfaceParseObserver
- Parameters:
bytes
-non-null;
the source that was parsedoffset
- offset intobytes
for the end of the membername
-non-null;
name of the memberdescriptor
-non-null;
descriptor of the membermember
-non-null;
the actual member that was parsed
-