程序包 proguard

类 KeepClassSpecification

  • 所有已实现的接口:
    java.lang.Cloneable

    public class KeepClassSpecification
    extends ClassSpecification
    This class represents a keep option with class specification.
    • 字段详细资料

      • markClasses

        public final boolean markClasses
      • markClassMembers

        public final boolean markClassMembers
      • markConditionally

        public final boolean markConditionally
      • markDescriptorClasses

        public final boolean markDescriptorClasses
      • markCodeAttributes

        public final boolean markCodeAttributes
      • allowShrinking

        public final boolean allowShrinking
      • allowOptimization

        public final boolean allowOptimization
      • allowObfuscation

        public final boolean allowObfuscation
    • 构造器详细资料

      • KeepClassSpecification

        public KeepClassSpecification​(boolean markClasses,
                                      boolean markClassMembers,
                                      boolean markConditionally,
                                      boolean markDescriptorClasses,
                                      boolean markCodeAttributes,
                                      boolean allowShrinking,
                                      boolean allowOptimization,
                                      boolean allowObfuscation,
                                      ClassSpecification condition,
                                      ClassSpecification classSpecification)
        Creates a new KeepClassSpecification.
        参数:
        markClasses - specifies whether to mark the classes.
        markClassMembers - specifies whether to mark the class members.
        markConditionally - specifies whether to mark the classes and class members conditionally. If true, classes and class members are marked, on the condition that all specified class members are present.
        markDescriptorClasses - specifies whether to mark the classes in the descriptors of the marked class members.
        markCodeAttributes - specified whether to mark the code attributes of the marked class methods.
        allowShrinking - specifies whether shrinking is allowed.
        allowOptimization - specifies whether optimization is allowed.
        allowObfuscation - specifies whether obfuscation is allowed.
        condition - an optional extra condition.
        classSpecification - the specification of classes and class members.
      • KeepClassSpecification

        @Deprecated
        public KeepClassSpecification​(boolean markClassesAndMembers,
                                      boolean markConditionally,
                                      boolean markDescriptorClasses,
                                      boolean markCodeAttributes,
                                      boolean allowShrinking,
                                      boolean allowOptimization,
                                      boolean allowObfuscation,
                                      ClassSpecification condition,
                                      ClassSpecification classSpecification)
        已过时。
        Creates a new KeepClassSpecification.
        参数:
        markClassesAndMembers - specifies whether to mark the classes.
        markConditionally - specifies whether to mark the classes and class members conditionally. If true, classes and class members are marked, on the condition that all specified class members are present.
        markDescriptorClasses - specifies whether to mark the classes in the descriptors of the marked class members.
        markCodeAttributes - specified whether to mark the code attributes of the marked class methods.
        allowShrinking - specifies whether shrinking is allowed.
        allowOptimization - specifies whether optimization is allowed.
        allowObfuscation - specifies whether obfuscation is allowed.
        condition - an optional extra condition.
        classSpecification - the specification of classes and class members.