类 FieldOptimizationInfo
- java.lang.Object
-
- proguard.optimize.info.FieldOptimizationInfo
-
- 直接已知子类:
ProgramFieldOptimizationInfo
public class FieldOptimizationInfo extends java.lang.ObjectThis class stores some optimization information that can be attached to a field.
-
-
字段概要
字段 修饰符和类型 字段 说明 protected proguard.evaluation.value.Valuevalue
-
构造器概要
构造器 构造器 说明 FieldOptimizationInfo()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanBeMadePrivate()Returns whether the field can be made private.static FieldOptimizationInfogetFieldOptimizationInfo(proguard.classfile.Field field)Returns the FieldOptimizationInfo instance from the given field.proguard.evaluation.value.ReferenceValuegetReferencedClass()Returns a representation of the class through which the field is accessed, or null if it is unknown.proguard.evaluation.value.ValuegetValue()Returns a representation of the value of the field, or null if it is unknown.booleanisKept()Returns whether the method is kept.booleanisRead()Returns whether the field is ever read.booleanisWritten()Returns whether the field is ever written to.static voidsetFieldOptimizationInfo(proguard.classfile.Clazz clazz, proguard.classfile.Field field)Creates and sets a FieldOptimizationInfo instance on the given field.voidsetValue(proguard.evaluation.value.Value value)Specifies the value of the field.
-
-
-
方法详细资料
-
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.
-
-