Interface ParseObserver

All Known Implementing Classes:
BaseDumper, BlockDumper, ClassDumper, DotDumper, SsaDumper

public interface ParseObserver
Observer of parsing in action. This is used to supply feedback from the various things that parse particularly to the dumping utilities.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
    parsed(ByteArray bytes, int offset, int len, String human)
    Indicate that some parsing happened.
    void
    startParsingMember(ByteArray bytes, int offset, String name, String descriptor)
    Indicate that a particular member is now being parsed.
  • Method Details

    • changeIndent

      void changeIndent(int indentDelta)
      Indicate that the level of indentation for a dump should increase or decrease (positive or negative argument, respectively).
      Parameters:
      indentDelta - the amount to change indentation
    • startParsingMember

      void startParsingMember(ByteArray bytes, int offset, String name, String descriptor)
      Indicate that a particular member is now being parsed.
      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

      void endParsingMember(ByteArray bytes, int offset, String name, String descriptor, Member member)
      Indicate that a particular member is no longer being parsed.
      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
    • parsed

      void parsed(ByteArray bytes, int offset, int len, String human)
      Indicate that some parsing happened.
      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