|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.evaluation.Variables
public class Variables
This class represents a local variable frame that contains Value
objects. Values are generalizations of all values that have been stored in
the respective variables.
| Field Summary | |
|---|---|
protected int |
size
|
protected Value[] |
values
|
| Constructor Summary | |
|---|---|
Variables(int size)
Creates a new Variables object with a given maximum number of variables. |
|
Variables(Variables variables)
Creates a Variables object that is a copy of the given Variables object. |
|
| Method Summary | |
|---|---|
ReferenceValue |
aload(int index)
Loads the ReferenceValue from the variable with the given index. |
DoubleValue |
dload(int index)
Loads the DoubleValue from the variable with the given index. |
boolean |
equals(java.lang.Object object)
|
FloatValue |
fload(int index)
Loads the FloatValue from the variable with the given index. |
boolean |
generalize(Variables other,
boolean clearConflictingOtherVariables)
Generalizes the values of this Variables object with the values of the given Variables object. |
Value |
getValue(int index)
Gets the Value of the variable with the given index, without disturbing it. |
int |
hashCode()
|
IntegerValue |
iload(int index)
Loads the IntegerValue from the variable with the given index. |
void |
initialize(Variables other)
Initializes the values of this Variables object with the values of the given Variables object. |
LongValue |
lload(int index)
Loads the LongValue from the variable with the given index. |
Value |
load(int index)
Loads the Value from the variable with the given index. |
InstructionOffsetValue |
oload(int index)
Loads the InstructionOffsetValue from the variable with the given index. |
void |
reset(int size)
Resets this Variables object, so that it can be reused. |
int |
size()
Returns the number of variables. |
void |
store(int index,
Value value)
Stores the given Value at the given variable index. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Value[] values
protected int size
| Constructor Detail |
|---|
public Variables(int size)
public Variables(Variables variables)
| Method Detail |
|---|
public void reset(int size)
public void initialize(Variables other)
public boolean generalize(Variables other,
boolean clearConflictingOtherVariables)
clearConflictingOtherVariables - specifies whether the other
variables should be cleared too,
in case of conflicts.
public int size()
public Value getValue(int index)
public void store(int index,
Value value)
public Value load(int index)
public IntegerValue iload(int index)
public LongValue lload(int index)
public FloatValue fload(int index)
public DoubleValue dload(int index)
public ReferenceValue aload(int index)
public InstructionOffsetValue oload(int index)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||