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 HCodeElement
s, Instr
s 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
-
Instr(String, int)
- Constructor.
-
edges()
-
-
getID()
- Returns a unique numeric identifier for this element.
-
getLineNumber()
- Returns the line in the original source file that this bytecode
instruction can be traced to.
-
getOpcode()
- Returns the java bytecode of this instruction.
-
getSourceFile()
- Returns the original source file name that this bytecode instruction
is derived from.
-
newEdge(Instr, Instr)
-
-
next()
- Return a list of all the possible
Instr
s that may
succeed this one.
-
pred()
-
-
prev()
- Return a list of all the
Instr
s that can precede
this one.
-
succ()
-
Instr
protected Instr(String sourcefile,
int linenumber)
- Constructor.
getSourceFile
public String getSourceFile()
- Returns the original source file name that this bytecode instruction
is derived from.
getLineNumber
public int getLineNumber()
- Returns the line in the original source file that this bytecode
instruction can be traced to.
getID
public int getID()
- Returns a unique numeric identifier for this element.
getOpcode
public abstract byte getOpcode()
- Returns the java bytecode of this instruction.
prev
public Instr[] prev()
- Return a list of all the
Instr
s that can precede
this one.
next
public Instr[] next()
- Return a list of all the possible
Instr
s that may
succeed this one.
newEdge
public HCodeEdge newEdge(Instr from,
Instr to)
succ
public HCodeEdge[] succ()
pred
public HCodeEdge[] pred()
edges
public HCodeEdge[] edges()
All Packages Class Hierarchy This Package Previous Next Index