public class FieldOptimizationInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected proguard.evaluation.value.Value |
value |
| Constructor and Description |
|---|
FieldOptimizationInfo() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public boolean isKept()
public boolean isWritten()
public boolean isRead()
public boolean canBeMadePrivate()
public proguard.evaluation.value.ReferenceValue getReferencedClass()
public void setValue(proguard.evaluation.value.Value value)
public proguard.evaluation.value.Value getValue()
public static void setFieldOptimizationInfo(proguard.classfile.Clazz clazz,
proguard.classfile.Field field)
public static FieldOptimizationInfo getFieldOptimizationInfo(proguard.classfile.Field field)