程序包 proguard.shrink

类 ShortestClassUsageMarker

  • 所有已实现的接口:
    proguard.classfile.attribute.annotation.visitor.ElementValueVisitor, proguard.classfile.attribute.module.visitor.ExportsInfoVisitor, proguard.classfile.attribute.module.visitor.OpensInfoVisitor, proguard.classfile.attribute.module.visitor.ProvidesInfoVisitor, proguard.classfile.attribute.module.visitor.RequiresInfoVisitor, proguard.classfile.attribute.preverification.visitor.StackMapFrameVisitor, proguard.classfile.attribute.preverification.visitor.VerificationTypeVisitor, proguard.classfile.attribute.visitor.AttributeVisitor, proguard.classfile.attribute.visitor.ExceptionInfoVisitor, proguard.classfile.attribute.visitor.InnerClassesInfoVisitor, proguard.classfile.attribute.visitor.ParameterInfoVisitor, proguard.classfile.constant.visitor.ConstantVisitor, proguard.classfile.instruction.visitor.InstructionVisitor, proguard.classfile.kotlin.visitor.KotlinMetadataVisitor, proguard.classfile.visitor.ClassVisitor, proguard.classfile.visitor.MemberVisitor

    public class ShortestClassUsageMarker
    extends ClassUsageMarker
    This UsageMarker constructs the shortest chain of dependencies.
    另请参阅:
    ClassShrinker, ShortestUsagePrinter
    • 构造器详细资料

      • ShortestClassUsageMarker

        public ShortestClassUsageMarker​(ShortestUsageMarker usageMarker,
                                        java.lang.String reason)
        Creates a new ShortestUsageMarker with the given initial reason.
    • 方法详细资料

      • markProgramFieldBody

        protected void markProgramFieldBody​(proguard.classfile.ProgramClass programClass,
                                            proguard.classfile.ProgramField programField)
        覆盖:
        markProgramFieldBody 在类中 ClassUsageMarker
      • markProgramMethodBody

        protected void markProgramMethodBody​(proguard.classfile.ProgramClass programClass,
                                             proguard.classfile.ProgramMethod programMethod)
        覆盖:
        markProgramMethodBody 在类中 ClassUsageMarker
      • markMethodHierarchy

        protected void markMethodHierarchy​(proguard.classfile.Clazz clazz,
                                           proguard.classfile.Method method)
        从类复制的说明: ClassUsageMarker
        Marks the hierarchy of implementing or overriding methods corresponding to the given method, if any.
        覆盖:
        markMethodHierarchy 在类中 ClassUsageMarker
      • shouldBeMarkedAsUsed

        public boolean shouldBeMarkedAsUsed​(proguard.classfile.ProgramClass programClass)
        从类复制的说明: ClassUsageMarker
        Returns whether the given program class should still be marked as being used.
        覆盖:
        shouldBeMarkedAsUsed 在类中 ClassUsageMarker
      • shouldBeMarkedAsUsed

        public boolean shouldBeMarkedAsUsed​(proguard.classfile.ProgramClass programClass,
                                            proguard.classfile.ProgramMember programMember)
        从类复制的说明: ClassUsageMarker
        Returns whether the given program member should still be marked as being used.
        覆盖:
        shouldBeMarkedAsUsed 在类中 ClassUsageMarker
      • shouldBeMarkedAsUsed

        public boolean shouldBeMarkedAsUsed​(proguard.util.Processable processable)
        从类复制的说明: ClassUsageMarker
        Returns whether the given processable should still be marked as being used.
        覆盖:
        shouldBeMarkedAsUsed 在类中 ClassUsageMarker
      • isUsed

        public boolean isUsed​(proguard.util.Processable processable)
        从类复制的说明: ClassUsageMarker
        Returns whether the given processable has been marked as being used.
        覆盖:
        isUsed 在类中 ClassUsageMarker
      • shouldBeMarkedAsPossiblyUsed

        public boolean shouldBeMarkedAsPossiblyUsed​(proguard.classfile.ProgramClass programClass,
                                                    proguard.classfile.ProgramMember programMember)
        从类复制的说明: ClassUsageMarker
        Returns whether the given program member should still be marked as being used.
        覆盖:
        shouldBeMarkedAsPossiblyUsed 在类中 ClassUsageMarker
      • shouldBeMarkedAsPossiblyUsed

        public boolean shouldBeMarkedAsPossiblyUsed​(proguard.util.Processable processable)
        从类复制的说明: ClassUsageMarker
        Returns whether the given processable should still be marked as possibly being used.
        覆盖:
        shouldBeMarkedAsPossiblyUsed 在类中 ClassUsageMarker
      • isPossiblyUsed

        public boolean isPossiblyUsed​(proguard.util.Processable processable)
        从类复制的说明: ClassUsageMarker
        Returns whether the given processable has been marked as possibly being used.
        覆盖:
        isPossiblyUsed 在类中 ClassUsageMarker
      • getShortestUsageMark

        protected proguard.shrink.ShortestUsageMark getShortestUsageMark​(proguard.util.Processable processable)