类 ReferencedClassesExtractor

java.lang.Object
proguard.classfile.visitor.ReferencedClassesExtractor
所有已实现的接口:
MemberVisitor

public class ReferencedClassesExtractor extends Object implements MemberVisitor
Divides the referenced classes in a program/library method in the classes referenced in return and parameters.
  • 构造器详细资料

    • ReferencedClassesExtractor

      public ReferencedClassesExtractor()
  • 方法详细资料

    • visitAnyMember

      public void visitAnyMember(Clazz clazz, Member member)
      从接口复制的说明: MemberVisitor
      Visits any Member instance. The more specific default implementations of this interface delegate to this method.
      指定者:
      visitAnyMember 在接口中 MemberVisitor
    • visitProgramMethod

      public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
      指定者:
      visitProgramMethod 在接口中 MemberVisitor
    • visitLibraryMethod

      public void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
      指定者:
      visitLibraryMethod 在接口中 MemberVisitor
    • getReturnClass

      @Nullable public @Nullable Clazz getReturnClass()
      Returns the referenced return Clazz of the target method.
      返回:
      The instance referenced class. Null if the return type is a primitive or array of primitives. Can be null if the class pools have not been initialized; even if they have, the clazz not being null is not a guarantee.
    • getParameterClasses

      public Clazz[] getParameterClasses()
      Returns the referenced Clazz for each parameter.
      返回:
      The referenced class for each parameter (instance excluded), where each parameter can be accessed given its position (starting from 0, category 2 values take only one slot). An element is null if the corresponding parameter is of a primitive type or an array of primitives. An element can be null if the class pools have not been initialized; even if they have, elements not being null is not a guarantee