Interface DependencyCollector

All Known Implementing Classes:
CodemappingCollector

public interface DependencyCollector
Collects dependencies from the bytecode.
  • Method Summary

    Modifier and Type Method Description
    void enterClass​(java.lang.String className)
    Signals the source class of the dependencies that will be marked subsequently.
    void enterMember​(java.lang.String memberName)
    Signals the source member of the dependencies that will be marked subsequently.
    void exitClass()
    Signals end of the source class.
    void exitMember​(int size)
    Signals end of the source member.
    void markDependency​(DepType type, java.lang.String className, java.lang.String memberName)
    Marks a dependency to a target class and member.
  • Method Details

    • enterClass

      void enterClass​(java.lang.String className)
      Signals the source class of the dependencies that will be marked subsequently.
      Parameters:
      className - fully qualified class name, for example "java.lang.Object".
    • enterMember

      void enterMember​(java.lang.String memberName)
      Signals the source member of the dependencies that will be marked subsequently.
      Parameters:
      memberName - class member name, for example "equals()".
    • markDependency

      void markDependency​(DepType type, java.lang.String className, java.lang.String memberName)
      Marks a dependency to a target class and member. The source of the dependency is the current source class and current source member, as were set in enterClass() and enterMember() methods. Note that the they may be no specific source member of this dependency.
      Parameters:
      type - type of dependency
      className - fully qualified target class name
      memberName - target class member name, may be null if dependency is not to a specific member
    • exitMember

      void exitMember​(int size)
      Signals end of the source member.
      Parameters:
      size - size of the member, roughly the number of bytecode instruction that this member consists of
    • exitClass

      void exitClass()
      Signals end of the source class.