public class

NonConcreteMethodImpl

extends MethodImpl
java.lang.Object
   ↳ com.sun.tools.jdi.TypeComponentImpl
     ↳ com.sun.tools.jdi.MethodImpl
       ↳ com.sun.tools.jdi.NonConcreteMethodImpl
Known Direct Subclasses

Class Overview

Represents non-concrete (that is, native or abstract) methods. Private to MethodImpl.

Summary

[Expand]
Inherited Fields
From class com.sun.tools.jdi.TypeComponentImpl
Public Methods
List<Location> allLineLocations(SDE.Stratum stratum, String sourceName)
List<Location> allLineLocations(String stratumID, String sourceName)
Returns a list containing a Location object for each executable source line in this method.
List<LocalVariable> arguments()
byte[] bytecodes()
Location location()
Location locationOfCodeIndex(long codeIndex)
List<Location> locationsOfLine(String stratumID, String sourceName, int lineNumber)
Returns a List containing all Location objects that map to the given line number and source name.
List<Location> locationsOfLine(SDE.Stratum stratum, String sourceName, int lineNumber)
List<LocalVariable> variables()
List<LocalVariable> variablesByName(String name)
[Expand]
Inherited Methods
From class com.sun.tools.jdi.MethodImpl
From class com.sun.tools.jdi.TypeComponentImpl
From class java.lang.Object
From interface com.sun.jdi.Accessible
From interface com.sun.jdi.Locatable
From interface com.sun.jdi.Method
From interface com.sun.jdi.Mirror
From interface com.sun.jdi.TypeComponent
From interface java.lang.Comparable

Public Methods

public List<Location> allLineLocations (SDE.Stratum stratum, String sourceName)

public List<Location> allLineLocations (String stratumID, String sourceName)

Returns a list containing a Location object for each executable source line in this method.

Each location maps a source line to a range of code indices. The beginning of the range can be determined through codeIndex(). The returned list is ordered by code index (from low to high).

The returned list may contain multiple locations for a particular line number, if the compiler and/or VM has mapped that line to two or more disjoint code index ranges.

If the method is native or abstract, an empty list is returned.

Returned list is for the specified stratum (see Location for a description of strata).

Parameters
stratumID The stratum to retrieve information from or null for the defaultStratum()
sourceName Return locations only within this source file or null to return locations.
Returns
  • a List of all source line Location objects.

public List<LocalVariable> arguments ()

public byte[] bytecodes ()

public Location location ()

public Location locationOfCodeIndex (long codeIndex)

public List<Location> locationsOfLine (String stratumID, String sourceName, int lineNumber)

Returns a List containing all Location objects that map to the given line number and source name.

Returns a list containing each Location that maps to the given line. The returned list will contain a location for each disjoint range of code indices that have been assigned to the given line by the compiler and/or VM. Each returned location corresponds to the beginning of this range. An empty list will be returned if there is no executable code at the specified line number; specifically, native and abstract methods will always return an empty list.

Returned list is for the specified stratum (see Location for a description of strata).

Parameters
stratumID the stratum to use for comparing line number and source name, or null to use the default stratum
sourceName the source name containing the line number, or null to match all source names
lineNumber the line number
Returns
  • a List of Location objects that map to the given line number.

public List<Location> locationsOfLine (SDE.Stratum stratum, String sourceName, int lineNumber)

public List<LocalVariable> variables ()

public List<LocalVariable> variablesByName (String name)