All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.IR.Bytecode.InMerge

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

public class InMerge
extends Instr
InMerge is used to represent a node where multiple control flows merge. These are typically branch targets. An InMerge will have exactly one successor, and multiple predecessors.

Version:
$Id: InMerge.java,v 1.2 1998/10/11 03:01:16 cananian Exp $
Author:
C. Scott Ananian
See Also:
Instr

Constructor Index

 o InMerge(String, int, int)
Creates a new InMerge.

Method Index

 o arity()
Return the number of predecessors of this node.
 o getOpcode()
Return the java bytecode of this instruction.
 o toString()
Return human-readable representation.

Constructors

 o InMerge
 public InMerge(String sourcefile,
                int linenumber,
                int arity)
Creates a new InMerge.

Parameters:
arity - the number of predecessors this node will have.

Methods

 o arity
 public int arity()
Return the number of predecessors of this node. Exactly equivalent to prev().length but slightly more efficient.

 o getOpcode
 public byte getOpcode()
Return the java bytecode of this instruction. This function is required by the superclass, but not relevant to this function. It returns Op.NOP.

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

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index