|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.classfile.CodePosition
public final class CodePosition
This class represent the code position of each instruction during analyse of control flow. Such position are constrained between a min and a max value because it is not possible to know the size of jumps with forward reference
| Field Summary | |
|---|---|
int |
max
|
int |
min
|
| Constructor Summary | |
|---|---|
CodePosition(int min,
int max)
Constructs a new position |
|
| Method Summary | |
|---|---|
void |
addOffset(int size)
Add a value to min and max fields |
boolean |
isFix()
Returns true if min equals max |
void |
setPosition(CodePosition pos)
Sets the value of this object from an other one |
String |
toString()
Returns a string representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int min
public int max
| Constructor Detail |
|---|
public CodePosition(int min,
int max)
min - the minimum positionmax - the maximum position| Method Detail |
|---|
public final void setPosition(CodePosition pos)
public final void addOffset(int size)
public final boolean isFix()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||