All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.IR.Bytecode.InCti

java.lang.Object
   |
   +----harpoon.IR.Bytecode.Instr
           |
           +----harpoon.IR.Bytecode.InCti

public class InCti
extends Instr
InCti is used for control-transfer instructions. It will have exactly one predecessor, and multiple successors. For conditional branches, the first successor (next()[0]) will be the 'fall-through' instruction (corresponding to branch-not-taken). For unconditional branches, the first successor will be the target, if there is one. Instructions like ireturn have no successors.

Version:
$Id: InCti.java,v 1.2 1998/10/11 03:01:15 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
Instr

Constructor Index

 o InCti(String, int, byte[], int)
Create an InCti from a chunk of bytecode starting at offest pc.

Method Index

 o getOpcode()
Return the java bytecode opcode of this instruction.
 o toString()
Return human-readable instruction string.

Constructors

 o InCti
 public InCti(String sourcefile,
              int linenumber,
              byte code[],
              int pc)
Create an InCti from a chunk of bytecode starting at offest pc.

Methods

 o getOpcode
 public byte getOpcode()
Return the java bytecode opcode of this instruction.

Overrides:
getOpcode in class Instr
 o toString
 public String toString()
Return human-readable instruction string.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index