sysModel.classFile.code.instructions
Class ReferenceInstruction
java.lang.Object
   sysModel.classFile.code.instructions.AInstruction
sysModel.classFile.code.instructions.AInstruction
       sysModel.classFile.code.instructions.GenericInstruction
sysModel.classFile.code.instructions.GenericInstruction
           sysModel.classFile.code.instructions.ReferenceInstruction
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 opcode
- constantPoolId- 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- bytecode
- pc- starting index in bytecode
- paddingPC- PC for padding
- lnt- 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