|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.evaluation.Stack
proguard.evaluation.TracedStack
public class TracedStack
This Stack saves additional information with stack elements, to keep track of their origins and destinations.
The stack 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.
| Field Summary |
|---|
| Fields inherited from class proguard.evaluation.Stack |
|---|
actualMaxSize, currentSize, values |
| Constructor Summary | |
|---|---|
TracedStack(int maxSize)
Creates a new TracedStack with a given maximum size. |
|
TracedStack(TracedStack tracedStack)
Creates a new TracedStack that is a copy of the given TracedStack. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the stack. |
void |
copy(TracedStack other)
|
void |
dup_x1()
Duplicates the top Category 1 value, one Category 1 element down the stack. |
void |
dup_x2()
Duplicates the top Category 1 value, two Category 1 elements (or one Category 2 element) down the stack. |
void |
dup()
Duplicates the top Category 1 value. |
void |
dup2_x1()
Duplicates the top Category 2 value, one Category 1 element down the stack (or alternatively, the equivalent Category 1 stack values). |
void |
dup2_x2()
Duplicates the top Category 2 value, one Category 2 stack element down the stack (or alternatively, the equivalent Category 1 stack values). |
void |
dup2()
Duplicates the top Category 2 value (or alternatively, the equivalent Category 1 stack elements). |
boolean |
equals(java.lang.Object object)
|
boolean |
generalize(TracedStack other)
|
Value |
getBottomProducerValue(int index)
Gets the specified producer Value from the stack, without disturbing it. |
Value |
getTopProducerValue(int index)
Gets the specified producer Value from the stack, without disturbing it. |
int |
hashCode()
|
Value |
pop()
Pops the top Value from the stack. |
void |
pop1()
Pops the top category 1 value from the stack. |
void |
pop2()
Pops the top category 2 value from the stack (or alternatively, two Category 1 stack elements). |
void |
push(Value value)
Pushes the given Value onto the stack. |
void |
removeTop(int index)
Removes the specified Value from the stack. |
void |
reset(int size)
Resets this Stack, so that it can be reused. |
void |
setBottomProducerValue(int index,
Value value)
Sets the specified producer Value on the stack, without disturbing it. |
void |
setProducerValue(Value producerValue)
Sets the Value that will be stored along with all push and pop instructions. |
void |
setTopProducerValue(int index,
Value value)
Sets the specified producer Value on the stack, without disturbing it. |
void |
swap()
Swaps the top two Category 1 values. |
java.lang.String |
toString()
|
| Methods inherited from class proguard.evaluation.Stack |
|---|
apop, copy, dpop, fpop, generalize, getActualMaxSize, getBottom, getTop, ipop, lpop, opop, setBottom, setTop, size |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TracedStack(int maxSize)
public TracedStack(TracedStack tracedStack)
| Method Detail |
|---|
public void setProducerValue(Value producerValue)
public Value getBottomProducerValue(int index)
index - the index of the stack element, counting from the bottom
of the stack.
public void setBottomProducerValue(int index,
Value value)
index - the index of the stack element, counting from the bottom
of the stack.value - the producer value to set.public Value getTopProducerValue(int index)
index - the index of the stack element, counting from the top
of the stack.
public void setTopProducerValue(int index,
Value value)
index - the index of the stack element, counting from the top
of the stack.value - the producer value to set.public void reset(int size)
Stack
reset in class Stackpublic void copy(TracedStack other)
public boolean generalize(TracedStack other)
public void clear()
Stack
clear in class Stackpublic void removeTop(int index)
Stack
removeTop in class Stackindex - the index of the stack element, counting from the top
of the stack.public void push(Value value)
Stack
push in class Stackpublic Value pop()
Stack
pop in class Stackpublic void pop1()
Stack
pop1 in class Stackpublic void pop2()
Stack
pop2 in class Stackpublic void dup()
Stack
dup in class Stackpublic void dup_x1()
Stack
dup_x1 in class Stackpublic void dup_x2()
Stack
dup_x2 in class Stackpublic void dup2()
Stack
dup2 in class Stackpublic void dup2_x1()
Stack
dup2_x1 in class Stackpublic void dup2_x2()
Stack
dup2_x2 in class Stackpublic void swap()
Stack
swap in class Stackpublic boolean equals(java.lang.Object object)
equals in class Stackpublic int hashCode()
hashCode in class Stackpublic java.lang.String toString()
toString in class Stack
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||