Package org.openjdk.jmc.common.util
Class MCFrame
- java.lang.Object
-
- org.openjdk.jmc.common.util.MCFrame
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openjdk.jmc.common.IMCFrame
IMCFrame.Type
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Integerm_bciprivate java.lang.Integerm_frameLineNumberprivate IMCMethodm_methodprivate IMCFrame.Typem_type
-
Constructor Summary
Constructors Constructor Description MCFrame(IMCMethod method, java.lang.Integer bci, java.lang.Integer frameLineNumber, IMCFrame.Type type)Create a new frame instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.IntegergetBCI()Returns the byte code index in Java class file, ornullif not available.java.lang.IntegergetFrameLineNumber()Returns the line number for the frame, ornullif not available.IMCMethodgetMethod()The method for the frame.IMCFrame.TypegetType()The compilation type of the frame.inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
m_method
private final IMCMethod m_method
-
m_bci
private final java.lang.Integer m_bci
-
m_frameLineNumber
private final java.lang.Integer m_frameLineNumber
-
m_type
private final IMCFrame.Type m_type
-
-
Constructor Detail
-
MCFrame
public MCFrame(IMCMethod method, java.lang.Integer bci, java.lang.Integer frameLineNumber, IMCFrame.Type type)
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 Detail
-
getBCI
public final java.lang.Integer getBCI()
Description copied from interface:IMCFrameReturns the byte code index in Java class file, ornullif not available.
-
getMethod
public final IMCMethod getMethod()
Description copied from interface:IMCFrameThe method for the frame. SeeIMCMethod
-
getFrameLineNumber
public final java.lang.Integer getFrameLineNumber()
Description copied from interface:IMCFrameReturns the line number for the frame, ornullif not available.- Specified by:
getFrameLineNumberin interfaceIMCFrame- Returns:
- the line number
-
getType
public final IMCFrame.Type getType()
Description copied from interface:IMCFrameThe compilation type of the frame.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-