APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.tools.jdi

public Class NonConcreteMethodImpl

extends MethodImpl
Class Inheritance
Known Direct Subclasses
com.sun.tools.jdi.ObsoleteMethodImpl
Imports
java.util.ArrayList, .List, com.sun.jdi.AbsentInformationException, .InternalException, .LocalVariable, .Location, .VirtualMachine

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

Field Summary

Modifier and TypeField and Description
private Location
Inherited from com.sun.tools.jdi.MethodImpl:
retValContainer

Constructor Summary

AccessConstructor and Description
pack-priv
NonConcreteMethodImpl(VirtualMachine vm, ReferenceTypeImpl declaringType, long ref, String name, String signature, String genericSignature, int modifiers)

Method Summary

Modifier and TypeMethod and Description
public List<Location>
allLineLocations(String stratumID, String sourceName)

Overrides com.sun.tools.jdi.MethodImpl.allLineLocations.

Implements com.sun.jdi.Method.allLineLocations.

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

public List<Location>
pack-priv int
public List<LocalVariable>
arguments()

Implements com.sun.jdi.Method.arguments.

Returns a list containing each LocalVariable that is declared as an argument of this method.

public byte[]
bytecodes()

Implements com.sun.jdi.Method.bytecodes.

Returns an array containing the bytecodes for this method.

public Location
location()

Implements com.sun.jdi.Method.location.

Returns the Location of this method, if there is executable code associated with it.

public Location
locationOfCodeIndex(long codeIndex)

Implements com.sun.jdi.Method.locationOfCodeIndex.

Returns a Location for the given code index.

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

Overrides com.sun.tools.jdi.MethodImpl.locationsOfLine.

Implements com.sun.jdi.Method.locationsOfLine.

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

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

Implements abstract com.sun.tools.jdi.MethodImpl.locationsOfLine.

public List<LocalVariable>
variables()

Implements com.sun.jdi.Method.variables.

Returns a list containing each LocalVariable declared in this method.

public List<LocalVariable>
variablesByName(String name)

Implements com.sun.jdi.Method.variablesByName.

Returns a list containing each LocalVariable of a given name in this method.

Inherited from com.sun.tools.jdi.MethodImpl:
allLineLocationsargumentSignaturesargumentTypeargumentTypeNamesargumentTypescodeIndexToLineInfocompareTocreateMethodImplequalsfindTypegetReturnValueContainerhandleVarArgshashCodeisAbstractisBridgeisConstructorisDefaultisNativeisObsoleteisStaticInitializerisSynchronizedisVarArgslocationsOfLinereturnTypereturnTypeNametoStringvalidateAndPrepareArgumentsForInvoke

Field Detail

locationback to summary
private Location location

Constructor Detail

NonConcreteMethodImplback to summary
pack-priv NonConcreteMethodImpl(VirtualMachine vm, ReferenceTypeImpl declaringType, long ref, String name, String signature, String genericSignature, int modifiers)

Method Detail

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

Overrides com.sun.tools.jdi.MethodImpl.allLineLocations.

Implements com.sun.jdi.Method.allLineLocations.

Doc from com.sun.jdi.Method.allLineLocations.

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 Location#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).

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

Implements abstract com.sun.tools.jdi.MethodImpl.allLineLocations.

argSlotCountback to summary
pack-priv int argSlotCount() throws AbsentInformationException

Implements abstract com.sun.tools.jdi.MethodImpl.argSlotCount.

argumentsback to summary
public List<LocalVariable> arguments() throws AbsentInformationException

Implements com.sun.jdi.Method.arguments.

Doc from com.sun.jdi.Method.arguments.

Returns a list containing each LocalVariable that is declared as an argument of this method. If local variable information is not available, values of actual arguments to method invocations can be obtained by using the method StackFrame#getArgumentValues()

Exceptions
AbsentInformationException:
if there is no variable information for this method. Generally, local variable information is not available for native or abstract methods (that is, their argument name information is not available), thus they will throw this exception.
bytecodesback to summary
public byte[] bytecodes()

Implements com.sun.jdi.Method.bytecodes.

Doc from com.sun.jdi.Method.bytecodes.

Returns an array containing the bytecodes for this method.

Not all target virtual machines support this operation. Use VirtualMachine#canGetBytecodes() to determine if the operation is supported.

locationback to summary
public Location location()

Implements com.sun.jdi.Method.location.

Doc from com.sun.jdi.Method.location.

Returns the Location of this method, if there is executable code associated with it.

locationOfCodeIndexback to summary
public Location locationOfCodeIndex(long codeIndex)

Implements com.sun.jdi.Method.locationOfCodeIndex.

Doc from com.sun.jdi.Method.locationOfCodeIndex.

Returns a Location for the given code index.

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

Overrides com.sun.tools.jdi.MethodImpl.locationsOfLine.

Implements com.sun.jdi.Method.locationsOfLine.

Doc from com.sun.jdi.Method.locationsOfLine.

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).

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

Implements abstract com.sun.tools.jdi.MethodImpl.locationsOfLine.

variablesback to summary
public List<LocalVariable> variables() throws AbsentInformationException

Implements com.sun.jdi.Method.variables.

Doc from com.sun.jdi.Method.variables.

Returns a list containing each LocalVariable declared in this method. The list includes any variable declared in any scope within the method. It may contain multiple variables of the same name declared within disjoint scopes. Arguments are considered local variables and will be present in the returned list. If local variable information is not available, values of actual arguments to method invocations can be obtained by using the method StackFrame#getArgumentValues()

Exceptions
AbsentInformationException:
if there is no variable information for this method. Generally, local variable information is not available for native or abstract methods (that is, their argument name information is not available), thus they will throw this exception.
variablesByNameback to summary
public List<LocalVariable> variablesByName(String name) throws AbsentInformationException

Implements com.sun.jdi.Method.variablesByName.

Doc from com.sun.jdi.Method.variablesByName.

Returns a list containing each LocalVariable of a given name in this method. Multiple variables can be returned if the same variable name is used in disjoint scopes within the method.

Exceptions
AbsentInformationException:
if there is no variable information for this method. Generally, local variable information is not available for native or abstract methods (that is, their argument name information is not available), thus they will throw this exception.