com.jrockit.memleak
Interface ILocation

All Known Implementing Classes:
Location

public interface ILocation

Represents a stack frame, as used in allocation stack traces. This class is similar to StackTraceElement, but additionally has the method descriptor included so that methods can be uniquely identified even if source information is unavailable.

See Also:
StackTraceElement

Method Summary
 int getLine()
          Returns the line number of the source line containing the execution point represented by this stack frame.
 IMethodInfo getMethodInfo()
          Returns the IMethodInfo of the method containing the execution point represented by this stack frame (as per The Java Virtual Machine Specification, Section 4.3.3).
 boolean isNative()
          Is the method represented by this stack frame declared native.
 

Method Detail

getMethodInfo

IMethodInfo getMethodInfo()
Returns the IMethodInfo of the method containing the execution point represented by this stack frame (as per The Java Virtual Machine Specification, Section 4.3.3).

Returns:
the IMethodInfo of the method containing the execution point represented by this stack frame.

getLine

int getLine()
Returns the line number of the source line containing the execution point represented by this stack frame. Generally, this is derived from the LineNumberTable attribute of the relevant class file (as per The Java Virtual Machine Specification, Section 4.7.8).

Returns:
the line number of the source line containing the execution point represented by this stack frame. If the line number is unknown, a negative value may be returned.

isNative

boolean isNative()
Is the method represented by this stack frame declared native.

Returns:
true if the method represented by this stack frame is native.


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.