Package org.openjdk.jmc.common.util
Class MCFrame
java.lang.Object
org.openjdk.jmc.common.util.MCFrame
- All Implemented Interfaces:
IMCFrame
Base implementation of the
IMCFrame
interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openjdk.jmc.common.IMCFrame
IMCFrame.Type
-
Constructor Summary
ConstructorsConstructorDescriptionMCFrame
(IMCMethod method, Integer bci, Integer frameLineNumber, IMCFrame.Type type) Create a new frame instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
final Integer
getBCI()
Returns the byte code index in Java class file, ornull
if not available.final Integer
Returns the line number for the frame, ornull
if not available.final IMCMethod
The method for the frame.final IMCFrame.Type
getType()
The compilation type of the frame.int
hashCode()
toString()
-
Constructor Details
-
MCFrame
Create a new frame instance.- Parameters:
method
- method for the frame, seeIMCFrame.getMethod()
bci
- byte code index for the frame, seeIMCFrame.getBCI()
frameLineNumber
- frame line number, seeIMCFrame.getFrameLineNumber()
type
- frame compilation type
-
-
Method Details
-
getBCI
Description copied from interface:IMCFrame
Returns the byte code index in Java class file, ornull
if not available. -
getMethod
Description copied from interface:IMCFrame
The method for the frame. SeeIMCMethod
-
getFrameLineNumber
Description copied from interface:IMCFrame
Returns the line number for the frame, ornull
if not available.- Specified by:
getFrameLineNumber
in interfaceIMCFrame
- Returns:
- the line number
-
getType
Description copied from interface:IMCFrame
The compilation type of the frame. -
toString
-
hashCode
public int hashCode() -
equals
-