harpoon.ClassFile
Interface HCodeElement

All Known Subinterfaces:
CFGraphable<CFG,E>, UseDefable
All Known Implementing Classes:
AGET, ALENGTH, ALIGN, ANEW, ARRAYINIT, ASET, BINOP, CALL, CALL, CJMP, CJUMP, CodeGen.InstrCC, CodeGen.InstrDELAYSLOT, COMPONENTOF, CONST, CONST, DATUM, DEBUG, ESEQ, Exp, EXPR, FOOTER, GET, HANDLER, HEADER, InCti, InGen, InMerge, InRet, INSTANCEOF, Instr, Instr, InstrCALL, InstrDIRECTIVE, InstrJUMP, InstrLABEL, InstrMEM, InstrMOVE, InstrMOVEproxy, InSwitch, INVOCATION, JUMP, LABEL, LABEL, LowQuad, MEM, METHOD, METHOD, MONITORENTER, MONITOREXIT, MOVE, MOVE, NAME, NATIVECALL, NEW, NOP, OPER, OPER, PAOFFSET, PARRAY, PCALL, PCONST, PFCONST, PFIELD, PFOFFSET, PGET, PHI, PMCONST, PMETHOD, PMOFFSET, POPER, PPTR, PSET, Quad, RegAlloc.RestoreProxy, RegAlloc.SpillLoad, RegAlloc.SpillProxy, RegAlloc.SpillStore, RETURN, RETURN, SEGMENT, SEQ, SET, SIGMA, Stm, SWITCH, TEMP, THROW, THROW, Tree, TYPECAST, TYPESWITCH, UNOP

public interface HCodeElement

HCodeElement is an interface that all views of a particular method's executable instructions should implement.

HCodeElements are "components" of an HCode. The correspond roughly to "an instruction" in the HCode "list of instructions". Each HCodeElement should be traceable to an original source file and line number, and possess a unique numeric identifier.

Version:
$Id: HCodeElement.java,v 1.8 2002/02/25 21:03:03 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
HCode, Instr

Method Summary
 int getID()
          Returns a unique numeric identifier for this element.
 int getLineNumber()
          Get the line in the original source file that this element is traceable to.
 String getSourceFile()
          Get the original source file name that this element is derived from.
 

Method Detail

getSourceFile

String getSourceFile()
Get the original source file name that this element is derived from.


getLineNumber

int getLineNumber()
Get the line in the original source file that this element is traceable to.


getID

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