Class DotDumper

java.lang.Object
com.android.dx.command.dump.DotDumper
All Implemented Interfaces:
ParseObserver

public class DotDumper extends Object implements ParseObserver
Dumps the pred/succ graph of methods into a format compatible with the popular graph utility "dot".
  • Method Details

    • shouldDumpMethod

      protected boolean shouldDumpMethod(String name)
      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 interface ParseObserver
      Parameters:
      indentDelta - the amount to change indentation
    • parsed

      public void parsed(ByteArray bytes, int offset, int len, String human)
      Description copied from interface: ParseObserver
      Indicate that some parsing happened.
      Specified by:
      parsed in interface ParseObserver
      Parameters:
      bytes - non-null; the source that was parsed
      offset - offset into bytes for what was parsed
      len - number of bytes parsed
      human - non-null; human form for what was parsed
    • startParsingMember

      public void startParsingMember(ByteArray bytes, int offset, String name, String descriptor)
      Indicate that a particular member is now being parsed.
      Specified by:
      startParsingMember in interface ParseObserver
      Parameters:
      bytes - non-null; the source that is being parsed
      offset - offset into bytes for the start of the member
      name - non-null; name of the member
      descriptor - 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 interface ParseObserver
      Parameters:
      bytes - non-null; the source that was parsed
      offset - offset into bytes for the end of the member
      name - non-null; name of the member
      descriptor - non-null; descriptor of the member
      member - non-null; the actual member that was parsed