All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.IR.Bytecode.Instr

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

public abstract class Instr
extends Object
implements HCodeElement, Edges
Bytecode.Instr is the base type for the specific bytecode instruction classes. It provides standard methods for accessing the opcode of a specific instruction and for determining which instructions may preceed or follow it.

As with all HCodeElements, Instrs are traceable to an original source file and line number, and have a unique numeric identifier.

Version:
$Id: Instr.java,v 1.3 1998/10/11 03:01:16 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
InGen, InCti, InMerge, InSwitch, Code

Constructor Index

 o Instr(String, int)
Constructor.

Method Index

 o edges()
 o getID()
Returns a unique numeric identifier for this element.
 o getLineNumber()
Returns the line in the original source file that this bytecode instruction can be traced to.
 o getOpcode()
Returns the java bytecode of this instruction.
 o getSourceFile()
Returns the original source file name that this bytecode instruction is derived from.
 o newEdge(Instr, Instr)
 o next()
Return a list of all the possible Instrs that may succeed this one.
 o pred()
 o prev()
Return a list of all the Instrs that can precede this one.
 o succ()

Constructors

 o Instr
 protected Instr(String sourcefile,
                 int linenumber)
Constructor.

Methods

 o getSourceFile
 public String getSourceFile()
Returns the original source file name that this bytecode instruction is derived from.

 o getLineNumber
 public int getLineNumber()
Returns the line in the original source file that this bytecode instruction can be traced to.

 o getID
 public int getID()
Returns a unique numeric identifier for this element.

 o getOpcode
 public abstract byte getOpcode()
Returns the java bytecode of this instruction.

 o prev
 public Instr[] prev()
Return a list of all the Instrs that can precede this one.

 o next
 public Instr[] next()
Return a list of all the possible Instrs that may succeed this one.

 o newEdge
 public HCodeEdge newEdge(Instr from,
                          Instr to)
 o succ
 public HCodeEdge[] succ()
 o pred
 public HCodeEdge[] pred()
 o edges
 public HCodeEdge[] edges()

All Packages  Class Hierarchy  This Package  Previous  Next  Index