|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.evaluation.Variables
proguard.evaluation.TracedVariables
public class TracedVariables
This Variables class saves additional information with variables, to keep track of their origins.
The Variables class stores a given producer Value along with each Value it stores. It then generalizes a given collected Value with the producer Value of each Value it loads. The producer Value and the initial collected Value can be set; the generalized collected Value can be retrieved.
In addition, an initialization index can be reset and retrieved, pointing to the most recent variable that has been initialized by a store operation.
| Field Summary | |
|---|---|
static int |
NONE
|
| Fields inherited from class proguard.evaluation.Variables |
|---|
size, values |
| Constructor Summary | |
|---|---|
TracedVariables(int size)
Creates a new TracedVariables with a given size. |
|
TracedVariables(TracedVariables tracedVariables)
Creates a new TracedVariables that is a copy of the given TracedVariables. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
boolean |
generalize(TracedVariables other,
boolean clearConflictingOtherVariables)
|
int |
getInitializationIndex()
Returns the most recent initialization index since it has been reset. |
Value |
getProducerValue(int index)
Gets the producer Value for the specified variable, without disturbing it. |
int |
hashCode()
|
void |
initialize(TracedVariables other)
|
void |
reset(int size)
Resets this Variables object, so that it can be reused. |
void |
resetInitialization()
Resets the initialization index. |
void |
setProducerValue(int index,
Value value)
Sets the given producer Value for the specified variable, without disturbing it. |
void |
setProducerValue(Value producerValue)
Sets the Value that will be stored along with all store instructions. |
void |
store(int index,
Value value)
Stores the given Value at the given variable index. |
java.lang.String |
toString()
|
| Methods inherited from class proguard.evaluation.Variables |
|---|
aload, dload, fload, generalize, getValue, iload, initialize, lload, load, oload, size |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NONE
| Constructor Detail |
|---|
public TracedVariables(int size)
public TracedVariables(TracedVariables tracedVariables)
| Method Detail |
|---|
public void setProducerValue(Value producerValue)
public void resetInitialization()
public int getInitializationIndex()
public Value getProducerValue(int index)
index - the variable index.
public void setProducerValue(int index,
Value value)
index - the variable index.value - the producer value to set.public void reset(int size)
Variables
reset in class Variablespublic void initialize(TracedVariables other)
public boolean generalize(TracedVariables other,
boolean clearConflictingOtherVariables)
public void store(int index,
Value value)
Variables
store in class Variablespublic boolean equals(java.lang.Object object)
equals in class Variablespublic int hashCode()
hashCode in class Variablespublic java.lang.String toString()
toString in class Variables
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||