com.jrockit.memleak.value
Class Location

java.lang.Object
  extended by com.jrockit.memleak.value.Location
All Implemented Interfaces:
ILocation, IClassInfoHolder

public class Location
extends java.lang.Object
implements ILocation, IClassInfoHolder

Default ILocation implementation.

See Also:
StackTraceElement

Constructor Summary
Location(IMethodInfo methodInfo, int line)
          Create a new stack frame.
 
Method Summary
 boolean equals(java.lang.Object that)
           
 IClassInfo getClassInfo()
           
 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).
 int hashCode()
           
 boolean isNative()
          Is the method represented by this stack frame declared native.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Location

public Location(IMethodInfo methodInfo,
                int line)
Create a new stack frame.

Parameters:
methodInfo - the method info
line - the line number in the source file
Method Detail

getMethodInfo

public IMethodInfo getMethodInfo()
Description copied from interface: ILocation
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).

Specified by:
getMethodInfo in interface ILocation
Returns:
the IMethodInfo of the method containing the execution point represented by this stack frame.

getClassInfo

public IClassInfo getClassInfo()
Specified by:
getClassInfo in interface IClassInfoHolder
Returns:
a IClassInfo, never null.

getLine

public int getLine()
Description copied from interface: ILocation
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).

Specified by:
getLine in interface ILocation
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

public boolean isNative()
Description copied from interface: ILocation
Is the method represented by this stack frame declared native.

Specified by:
isNative in interface ILocation
Returns:
true if the method represented by this stack frame is native.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

hashCode

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


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