at.dms.classfile
Class CodePosition
java.lang.Object
|
+--at.dms.classfile.CodePosition
- public final class CodePosition
- extends java.lang.Object
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
Maximum. |
int |
min
Minimum. |
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 |
java.lang.String |
toString()
Returns a string representation. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
min
public int min
- Minimum.
max
public int max
- Maximum.
CodePosition
public CodePosition(int min,
int max)
- Constructs a new position
- Parameters:
min
- the minimum positionmax
- the maximum position
setPosition
public final void setPosition(CodePosition pos)
- Sets the value of this object from an other one
addOffset
public final void addOffset(int size)
- Add a value to min and max fields
isFix
public final boolean isFix()
- Returns true if min equals max
toString
public java.lang.String toString()
- Returns a string representation.
- Overrides:
toString
in class java.lang.Object