类 FieldOptimizationInfo

  • 直接已知子类:
    ProgramFieldOptimizationInfo

    public class FieldOptimizationInfo
    extends java.lang.Object
    This class stores some optimization information that can be attached to a field.
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected proguard.evaluation.value.Value value  
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      boolean canBeMadePrivate()
      Returns whether the field can be made private.
      static FieldOptimizationInfo getFieldOptimizationInfo​(proguard.classfile.Field field)
      Returns the FieldOptimizationInfo instance from the given field.
      proguard.evaluation.value.ReferenceValue getReferencedClass()
      Returns a representation of the class through which the field is accessed, or null if it is unknown.
      proguard.evaluation.value.Value getValue()
      Returns a representation of the value of the field, or null if it is unknown.
      boolean isKept()
      Returns whether the method is kept.
      boolean isRead()
      Returns whether the field is ever read.
      boolean isWritten()
      Returns whether the field is ever written to.
      static void setFieldOptimizationInfo​(proguard.classfile.Clazz clazz, proguard.classfile.Field field)
      Creates and sets a FieldOptimizationInfo instance on the given field.
      void setValue​(proguard.evaluation.value.Value value)
      Specifies the value of the field.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • value

        protected proguard.evaluation.value.Value value
    • 构造器详细资料

      • FieldOptimizationInfo

        public FieldOptimizationInfo()
    • 方法详细资料

      • isKept

        public boolean isKept()
        Returns whether the method is kept.
      • isWritten

        public boolean isWritten()
        Returns whether the field is ever written to.
      • isRead

        public boolean isRead()
        Returns whether the field is ever read.
      • canBeMadePrivate

        public boolean canBeMadePrivate()
        Returns whether the field can be made private.
      • getReferencedClass

        public proguard.evaluation.value.ReferenceValue getReferencedClass()
        Returns a representation of the class through which the field is accessed, or null if it is unknown.
      • setValue

        public void setValue​(proguard.evaluation.value.Value value)
        Specifies the value of the field.
      • getValue

        public proguard.evaluation.value.Value getValue()
        Returns a representation of the value of the field, or null if it is unknown.
      • setFieldOptimizationInfo

        public static void setFieldOptimizationInfo​(proguard.classfile.Clazz clazz,
                                                    proguard.classfile.Field field)
        Creates and sets a FieldOptimizationInfo instance on the given field.
      • getFieldOptimizationInfo

        public static FieldOptimizationInfo getFieldOptimizationInfo​(proguard.classfile.Field field)
        Returns the FieldOptimizationInfo instance from the given field.