sysModel.classFile.code.instructions
Class ReferenceInstruction
java.lang.Object
sysModel.classFile.code.instructions.AInstruction
sysModel.classFile.code.instructions.GenericInstruction
sysModel.classFile.code.instructions.ReferenceInstruction
public class ReferenceInstruction
- extends GenericInstruction
Instruction containing a reference to the constant pool.
- Author:
- Mathias
|
Constructor Summary |
ReferenceInstruction(byte[] bytecode,
short pc,
short paddingPC,
LineNumberTable lnt)
Make a new generic instruction from the bytecode stating at pc, padded using paddingPC, and use the line number
table for branches. |
ReferenceInstruction(byte opcode,
short constantPoolId)
Constructor. |
|
Method Summary |
short |
getReference()
Get the constant pool id. |
void |
setReference(short constantPoolId)
Set the constant pool id. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ReferenceInstruction
public ReferenceInstruction(byte opcode,
short constantPoolId)
- Constructor.
- Parameters:
opcode - invoke opcodeconstantPoolId - method id in constant pool
ReferenceInstruction
public ReferenceInstruction(byte[] bytecode,
short pc,
short paddingPC,
LineNumberTable lnt)
- Make a new generic instruction from the bytecode stating at pc, padded using paddingPC, and use the line number
table for branches.
- Parameters:
bytecode - bytecodepc - starting index in bytecodepaddingPC - PC for paddinglnt - line number table for branches
setReference
public void setReference(short constantPoolId)
- Set the constant pool id.
- Parameters:
constantPoolId - new constant pool id
getReference
public short getReference()
- Get the constant pool id.
- Returns:
- constant pool id