All Packages Class Hierarchy This Package Previous Next Index
Class BIT.highBIT.Instruction
java.lang.Object
|
+----BIT.highBIT.Instruction
- public class Instruction
- extends Object
- implements Cloneable
Represents a valid Java Virtual Machine instrucion.
- See Also:
- Routine
-
index
- Index of this instruction in InstructionArray
-
modified
- Is this an instruction in the modified array?
-
modified_index
- Index of this instruction in modified instructions array
-
offset
- This variable indicates the offset of this instruction from the
start of code buffer.
-
opcode
-
Represents the opcode of the instruction.
-
routine
- Pointer to the routine that this instruction is in.
-
Instruction(int, int, Routine)
- Constructor for Instruction class.
-
Instruction(int, Routine)
-
-
addAfter(String, String, Object)
-
-
addBefore(String, String, Object)
-
-
clone()
-
-
getDoubleOperandValue()
-
-
getInstructionType()
- Returns the type of this instruction.
-
getLength()
- Returns the length of this instruction.
-
getModifiedIndex()
- Gets the modified index of this instruction.
-
getOffset()
- Returns the offset of this instruction from the start of code buffer.
-
getOpcode()
- Returns the opcode of this instruction.
-
getOperandValue()
- Returns the value of the operands.
-
setIndex(int)
- Sets the index of this instruction.
-
setModified()
-
-
setModifiedIndex(int)
- Sets the modified index of this instruction.
-
setOffset(int)
- Set the offset of the instruction.
-
write(DataOutputStream)
-
opcode
protected int opcode
- Represents the opcode of the instruction.
This value can be read by invoking getOpcode() method.
- See Also:
- getOpcode
offset
protected int offset
- This variable indicates the offset of this instruction from the
start of code buffer.
routine
protected Routine routine
- Pointer to the routine that this instruction is in.
index
protected int index
- Index of this instruction in InstructionArray
modified_index
protected int modified_index
- Index of this instruction in modified instructions array
modified
protected boolean modified
- Is this an instruction in the modified array?
Instruction
public Instruction(int opcode,
int offset,
Routine routine)
- Constructor for Instruction class.
- Parameters:
- opcode - the opcode of this instruction
- offset - the offset of this instruction in bytes from start of code buffer
Instruction
public Instruction(int opcode,
Routine routine)
setIndex
public void setIndex(int index)
- Sets the index of this instruction.
setModifiedIndex
public void setModifiedIndex(int modified_index)
- Sets the modified index of this instruction.
A modified index is the index of this instruction that corresponds
to the modified instructions array.
getModifiedIndex
public int getModifiedIndex()
- Gets the modified index of this instruction.
A modified index is the index of this instruction that corresponds
to the modified instructions array.
getOpcode
public int getOpcode()
- Returns the opcode of this instruction.
getDoubleOperandValue
public int getDoubleOperandValue()
write
public void write(DataOutputStream oStream)
getInstructionType
public short getInstructionType()
- Returns the type of this instruction.
getOffset
public int getOffset()
- Returns the offset of this instruction from the start of code buffer.
getLength
public int getLength()
- Returns the length of this instruction.
getOperandValue
public int getOperandValue()
- Returns the value of the operands.
setOffset
public void setOffset(int offset)
- Set the offset of the instruction.
setModified
public void setModified()
clone
protected Object clone() throws CloneNotSupportedException
- Overrides:
- clone in class Object
addBefore
public int addBefore(String classname,
String methodname,
Object arg)
addAfter
public int addAfter(String classname,
String methodname,
Object arg)
All Packages Class Hierarchy This Package Previous Next Index