类 AccessMethodMarker

  • 所有已实现的接口:
    proguard.classfile.constant.visitor.ConstantVisitor, proguard.classfile.instruction.visitor.InstructionVisitor, proguard.classfile.visitor.ClassVisitor, proguard.classfile.visitor.MemberVisitor

    public class AccessMethodMarker
    extends java.lang.Object
    implements proguard.classfile.instruction.visitor.InstructionVisitor, proguard.classfile.constant.visitor.ConstantVisitor, proguard.classfile.visitor.ClassVisitor, proguard.classfile.visitor.MemberVisitor
    This InstructionVisitor marks the types of class accesses and class member accesses of the methods whose instructions it visits.
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      static boolean accessesPackageCode​(proguard.classfile.Method method)
      Returns whether the given method accesses package visible classes or class members.
      static boolean accessesPrivateCode​(proguard.classfile.Method method)
      Returns whether the given method accesses private class members.
      static boolean accessesProtectedCode​(proguard.classfile.Method method)
      Returns whether the given method accesses protected class members.
      void visitAnyClass​(proguard.classfile.Clazz clazz)  
      void visitAnyConstant​(proguard.classfile.Clazz clazz, proguard.classfile.constant.Constant constant)  
      void visitAnyInstruction​(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.Instruction instruction)  
      void visitAnyMember​(proguard.classfile.Clazz clazz, proguard.classfile.Member member)  
      void visitAnyRefConstant​(proguard.classfile.Clazz clazz, proguard.classfile.constant.RefConstant refConstant)  
      void visitClassConstant​(proguard.classfile.Clazz clazz, proguard.classfile.constant.ClassConstant classConstant)  
      void visitConstantInstruction​(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.ConstantInstruction constantInstruction)  
      void visitDynamicConstant​(proguard.classfile.Clazz clazz, proguard.classfile.constant.DynamicConstant dynamicConstant)  
      void visitInvokeDynamicConstant​(proguard.classfile.Clazz clazz, proguard.classfile.constant.InvokeDynamicConstant invokeDynamicConstant)  
      void visitMethodHandleConstant​(proguard.classfile.Clazz clazz, proguard.classfile.constant.MethodHandleConstant methodHandleConstant)  
      void visitStringConstant​(proguard.classfile.Clazz clazz, proguard.classfile.constant.StringConstant stringConstant)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 proguard.classfile.visitor.ClassVisitor

        visitLibraryClass, visitProgramClass
      • 从接口继承的方法 proguard.classfile.constant.visitor.ConstantVisitor

        visitAnyMethodrefConstant, visitDoubleConstant, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitLongConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitUtf8Constant
      • 从接口继承的方法 proguard.classfile.instruction.visitor.InstructionVisitor

        visitAnySwitchInstruction, visitBranchInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction, visitVariableInstruction
      • 从接口继承的方法 proguard.classfile.visitor.MemberVisitor

        visitLibraryField, visitLibraryMember, visitLibraryMethod, visitProgramField, visitProgramMember, visitProgramMethod
    • 构造器详细资料

      • AccessMethodMarker

        public AccessMethodMarker()
    • 方法详细资料

      • visitAnyInstruction

        public void visitAnyInstruction​(proguard.classfile.Clazz clazz,
                                        proguard.classfile.Method method,
                                        proguard.classfile.attribute.CodeAttribute codeAttribute,
                                        int offset,
                                        proguard.classfile.instruction.Instruction instruction)
        指定者:
        visitAnyInstruction 在接口中 proguard.classfile.instruction.visitor.InstructionVisitor
      • visitConstantInstruction

        public void visitConstantInstruction​(proguard.classfile.Clazz clazz,
                                             proguard.classfile.Method method,
                                             proguard.classfile.attribute.CodeAttribute codeAttribute,
                                             int offset,
                                             proguard.classfile.instruction.ConstantInstruction constantInstruction)
        指定者:
        visitConstantInstruction 在接口中 proguard.classfile.instruction.visitor.InstructionVisitor
      • visitAnyConstant

        public void visitAnyConstant​(proguard.classfile.Clazz clazz,
                                     proguard.classfile.constant.Constant constant)
        指定者:
        visitAnyConstant 在接口中 proguard.classfile.constant.visitor.ConstantVisitor
      • visitStringConstant

        public void visitStringConstant​(proguard.classfile.Clazz clazz,
                                        proguard.classfile.constant.StringConstant stringConstant)
        指定者:
        visitStringConstant 在接口中 proguard.classfile.constant.visitor.ConstantVisitor
      • visitDynamicConstant

        public void visitDynamicConstant​(proguard.classfile.Clazz clazz,
                                         proguard.classfile.constant.DynamicConstant dynamicConstant)
        指定者:
        visitDynamicConstant 在接口中 proguard.classfile.constant.visitor.ConstantVisitor
      • visitInvokeDynamicConstant

        public void visitInvokeDynamicConstant​(proguard.classfile.Clazz clazz,
                                               proguard.classfile.constant.InvokeDynamicConstant invokeDynamicConstant)
        指定者:
        visitInvokeDynamicConstant 在接口中 proguard.classfile.constant.visitor.ConstantVisitor
      • visitMethodHandleConstant

        public void visitMethodHandleConstant​(proguard.classfile.Clazz clazz,
                                              proguard.classfile.constant.MethodHandleConstant methodHandleConstant)
        指定者:
        visitMethodHandleConstant 在接口中 proguard.classfile.constant.visitor.ConstantVisitor
      • visitAnyRefConstant

        public void visitAnyRefConstant​(proguard.classfile.Clazz clazz,
                                        proguard.classfile.constant.RefConstant refConstant)
        指定者:
        visitAnyRefConstant 在接口中 proguard.classfile.constant.visitor.ConstantVisitor
      • visitClassConstant

        public void visitClassConstant​(proguard.classfile.Clazz clazz,
                                       proguard.classfile.constant.ClassConstant classConstant)
        指定者:
        visitClassConstant 在接口中 proguard.classfile.constant.visitor.ConstantVisitor
      • visitAnyClass

        public void visitAnyClass​(proguard.classfile.Clazz clazz)
        指定者:
        visitAnyClass 在接口中 proguard.classfile.visitor.ClassVisitor
      • visitAnyMember

        public void visitAnyMember​(proguard.classfile.Clazz clazz,
                                   proguard.classfile.Member member)
        指定者:
        visitAnyMember 在接口中 proguard.classfile.visitor.MemberVisitor
      • accessesPrivateCode

        public static boolean accessesPrivateCode​(proguard.classfile.Method method)
        Returns whether the given method accesses private class members.
      • accessesPackageCode

        public static boolean accessesPackageCode​(proguard.classfile.Method method)
        Returns whether the given method accesses package visible classes or class members.
      • accessesProtectedCode

        public static boolean accessesProtectedCode​(proguard.classfile.Method method)
        Returns whether the given method accesses protected class members.