|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectDynamicConstants.Constant
public static class DynamicConstants.Constant
Class used to indicate, for each variable, whether it is constant (see boolean field "constant"). If it is, then the class also stores its constant value and its sample count.
Note that two objects of this class are equal if they refer to the same variable. This allows these to be stored in sets.
| Field Summary | |
|---|---|
int |
count
The sample count of the constant. |
Object |
val
The value of the constant, or the previous constant value if constant==false && previous_constant==true. |
VarInfo |
vi
The variable that has this value. |
| Constructor Summary | |
|---|---|
DynamicConstants.Constant(VarInfo vi)
|
|
| Method Summary | |
|---|---|
void |
checkRep()
Check representation invariant. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
boolean |
is_prev_constant()
returns whether the specified variable is currently a constant OR was a constant at the beginning of constants processing. |
String |
toString()
|
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Object val
public int count
public VarInfo vi
| Constructor Detail |
|---|
public DynamicConstants.Constant(VarInfo vi)
| Method Detail |
|---|
public void checkRep()
public boolean is_prev_constant()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||