类 ProgramClassOptimizationInfo


  • public class ProgramClassOptimizationInfo
    extends ClassOptimizationInfo
    This class stores some optimization information that can be attached to a class that can be analyzed in detail.
    • 构造器详细资料

      • ProgramClassOptimizationInfo

        public ProgramClassOptimizationInfo()
    • 方法详细资料

      • setContainsConstructors

        public void setContainsConstructors()
      • setInstantiated

        public void setInstantiated()
        Specifies that the class is instantiated in the known code.
      • setInstanceofed

        public void setInstanceofed()
        Specifies that the class is part of an 'instanceof' instruction in the known code.
      • setDotClassed

        public void setDotClassed()
        Specifies that the class is loaded with an 'ldc' instruction (a .class construct in Java) in the known code.
      • setCaught

        public void setCaught()
        Specifies that the class is a Throwable that is caught in an exception handler in the known code.
      • setSimpleEnum

        public void setSimpleEnum​(boolean simple)
        Specifies whether the class is an enum type that can be simplified to a primitive integer.
      • setEscaping

        public void setEscaping()
        Specifies that instances of the class are escaping to the heap. Otherwise, any instances are just created locally and passed as parameters.
      • isEscaping

        public boolean isEscaping()
        从类复制的说明: ClassOptimizationInfo
        Returns whether instances of the class are ever escaping to the heap. Otherwise, any instances are just created locally and passed as parameters.
        覆盖:
        isEscaping 在类中 ClassOptimizationInfo
      • setSideEffects

        public void setSideEffects()
        Specifies that loading the class has side effects.
      • setContainsPackageVisibleMembers

        public void setContainsPackageVisibleMembers()
        Specifies that the class contains package visible class members.
      • setInvokesPackageVisibleMembers

        public void setInvokesPackageVisibleMembers()
        Specifies that code in the class accesses package visible class members.
      • setMayNotBeMerged

        public void setMayNotBeMerged()
        Specifies that the class may be not merged with other classes.
      • setWrappedClass

        public void setWrappedClass​(proguard.classfile.Clazz wrappedClass)
        Specifies the class for which this class is a simple wrapper without any additional functionality.
      • getWrappedClass

        public proguard.classfile.Clazz getWrappedClass()
        从类复制的说明: ClassOptimizationInfo
        Returns the class for which this class is a simple wrapper without any additional functionality, or null otherwise.
        覆盖:
        getWrappedClass 在类中 ClassOptimizationInfo
      • setTargetClass

        public void setTargetClass​(proguard.classfile.Clazz targetClass)
        Specifies the class into which this class can be merged.
      • merge

        public void merge​(ClassOptimizationInfo other)
        Merges in the given information of a class that is merged.
      • setProgramClassOptimizationInfo

        public static void setProgramClassOptimizationInfo​(proguard.classfile.Clazz clazz)
        Creates and sets a ProgramClassOptimizationInfo instance on the given class.
      • getProgramClassOptimizationInfo

        public static ProgramClassOptimizationInfo getProgramClassOptimizationInfo​(proguard.classfile.Clazz clazz)
        Returns the ProgramClassOptimizationInfo instance from the given class.