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 TypeMethodDescriptionvoidchangeIndent(int indentDelta) Indicate that the level of indentation for a dump should increase or decrease (positive or negative argument, respectively).voidendParsingMember(ByteArray bytes, int offset, String name, String descriptor, Member member) Indicate that a particular member is no longer being parsed.voidIndicate that some parsing happened.protected booleanshouldDumpMethod(String name) voidstartParsingMember(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:ParseObserverIndicate that the level of indentation for a dump should increase or decrease (positive or negative argument, respectively).- Specified by:
changeIndentin interfaceParseObserver- Parameters:
indentDelta- the amount to change indentation
-
parsed
Description copied from interface:ParseObserverIndicate that some parsing happened.- Specified by:
parsedin interfaceParseObserver- Parameters:
bytes-non-null;the source that was parsedoffset- offset intobytesfor 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:
startParsingMemberin interfaceParseObserver- Parameters:
bytes-non-null;the source that is being parsedoffset- offset intobytesfor 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:ParseObserverIndicate that a particular member is no longer being parsed.- Specified by:
endParsingMemberin interfaceParseObserver- Parameters:
bytes-non-null;the source that was parsedoffset- offset intobytesfor 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
-