SandMark version 2.0


sandmark.util
Class ByteCodeLocation

java.lang.Object
  |
  +--sandmark.util.ByteCodeLocation
All Implemented Interfaces:
java.io.Serializable

public class ByteCodeLocation
extends java.lang.Object
implements java.io.Serializable

This class represents the location of a bytecode instruction in the code.

All fields are public, but should be treated as read-only.

See Also:
Serialized Form

Field Summary
 long codeIndex
          The bytecode offset where the call was made.
 long lineNumber
          The line-number of the bytecode instruction.
 MethodID method
          The method in which the bytecode instruction resides.
static long MISSING_long
           
 
Constructor Summary
ByteCodeLocation(MethodID method, long lineNumber, long codeIndex)
           
 
Method Summary
 boolean equals(java.lang.Object b)
          Compare for equality.
 int hashCode()
           
 java.lang.String toString()
          Format the data in an easy to parse form.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MISSING_long

public static final long MISSING_long
See Also:
Constant Field Values

method

public MethodID method
The method in which the bytecode instruction resides.


lineNumber

public long lineNumber
The line-number of the bytecode instruction. (May be ==-1 if there was no line-number information present.)


codeIndex

public long codeIndex
The bytecode offset where the call was made.

Constructor Detail

ByteCodeLocation

public ByteCodeLocation(MethodID method,
                        long lineNumber,
                        long codeIndex)
Method Detail

equals

public boolean equals(java.lang.Object b)
Compare for equality.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Format the data in an easy to parse form.

Overrides:
toString in class java.lang.Object

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002