sysModel.classFile.code.instructions
Class ReferenceInstruction

java.lang.Object
  extended by sysModel.classFile.code.instructions.AInstruction
      extended by sysModel.classFile.code.instructions.GenericInstruction
          extended by sysModel.classFile.code.instructions.ReferenceInstruction

public class ReferenceInstruction
extends GenericInstruction

Instruction containing a reference to the constant pool.

Author:
Mathias

Field Summary
 
Fields inherited from class sysModel.classFile.code.instructions.GenericInstruction
_code
 
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 sysModel.classFile.code.instructions.GenericInstruction
equals, getBranchTargets, getBytecode, getBytecode, getBytecodeLength, getOpcode, hashCode, setBranchTargets, toString
 
Methods inherited from class sysModel.classFile.code.instructions.AInstruction
getCorrespondingLoad, getCorrespondingStore, makeInstruction
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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