|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectproguard.optimize.evaluation.value.Value
proguard.optimize.evaluation.value.Category1Value
proguard.optimize.evaluation.value.ReferenceValue
This class represents a partially evaluated reference value.
| Field Summary | |
protected boolean |
mayBeNull
|
| Fields inherited from class proguard.optimize.evaluation.value.Value |
ALWAYS, MAYBE, NEVER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INSTRUCTION_OFFSET, TYPE_INTEGER, TYPE_LONG, TYPE_REFERENCE |
| Constructor Summary | |
ReferenceValue(boolean mayBeNull)
Creates a new reference value that may or may not be null. |
|
| Method Summary | |
proguard.optimize.evaluation.value.Category1Value |
category1Value()
Returns this Value as a Category1Value. |
int |
computationalType()
Returns the computational type of this Value. |
int |
dimension()
Returns the array dimension, if applicable. |
int |
equal(ReferenceValue other)
Returns whether this ReferenceValue and the given ReferenceValue are equal: NEVER, MAYBE, or ALWAYS. |
int |
equal(proguard.optimize.evaluation.value.SpecificReferenceValue other)
Returns whether this ReferenceValue and the given SpecificReferenceValue are equal: NEVER, MAYBE, or ALWAYS. |
boolean |
equals(Object object)
|
ReferenceValue |
generalize(ReferenceValue other)
Returns the generalization of this ReferenceValue and the given other ReferenceValue. |
ReferenceValue |
generalize(proguard.optimize.evaluation.value.SpecificReferenceValue other)
Returns the generalization of this ReferenceValue and the given other SpecificReferenceValue. |
Value |
generalize(Value other)
Returns the generalization of this Value and the given other Value. |
int |
hashCode()
|
int |
instanceOf(ClassFile typeClassFile,
int typeDimension)
Returns whether this ReferenceValue is an instance of the given class with the given dimensionality: NEVER, MAYBE, or ALWAYS. |
boolean |
isCategory2()
Returns whether the computational type of this Value is a category 2 type. |
int |
isNotNull()
Returns whether this ReferenceValue is not null:
NEVER, MAYBE, or ALWAYS. |
int |
isNull()
Returns whether this ReferenceValue is null:
NEVER, MAYBE, or ALWAYS. |
int |
notEqual(ReferenceValue other)
Returns whether this ReferenceValue and the given ReferenceValue are different: NEVER, MAYBE, or ALWAYS. |
ReferenceValue |
referenceValue()
Returns this Value as a ReferenceValue. |
String |
toString()
|
ClassFile |
value()
Returns the specific reference value, if applicable. |
| Methods inherited from class proguard.optimize.evaluation.value.Value |
category2Value, doubleValue, floatValue, instructionOffsetValue, integerValue, isSpecific, longValue |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean mayBeNull
| Constructor Detail |
public ReferenceValue(boolean mayBeNull)
| Method Detail |
public ClassFile value()
public int dimension()
public ReferenceValue generalize(ReferenceValue other)
public int equal(ReferenceValue other)
NEVER, MAYBE, or ALWAYS.
public int isNull()
null:
NEVER, MAYBE, or ALWAYS.
public int instanceOf(ClassFile typeClassFile,
int typeDimension)
NEVER, MAYBE, or ALWAYS.
public final int notEqual(ReferenceValue other)
NEVER, MAYBE, or ALWAYS.
public final int isNotNull()
null:
NEVER, MAYBE, or ALWAYS.
public ReferenceValue generalize(proguard.optimize.evaluation.value.SpecificReferenceValue other)
public int equal(proguard.optimize.evaluation.value.SpecificReferenceValue other)
NEVER, MAYBE, or ALWAYS.
public final ReferenceValue referenceValue()
Value
referenceValue in class Valuepublic final Value generalize(Value other)
Value
generalize in class Valuepublic final int computationalType()
ValueTYPE_INTEGER
TYPE_LONG
TYPE_FLOAT
TYPE_DOUBLE
TYPE_REFERENCE
TYPE_INSTRUCTION_OFFSET
computationalType in class Valuepublic boolean equals(Object object)
public int hashCode()
public String toString()
public final proguard.optimize.evaluation.value.Category1Value category1Value()
Value
category1Value in class Valuepublic final boolean isCategory2()
Value
isCategory2 in class Value
|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||