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

public Class ObsoleteMethodImpl

extends NonConcreteMethodImpl
Class Inheritance
Imports
java.util.ArrayList, .List, com.sun.jdi.ClassNotLoadedException, .Type, .VirtualMachine

Represents methods which have changed when the class was redefined.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public List<String>
pack-priv Type
public List<String>
argumentTypeNames()

Overrides com.sun.tools.jdi.MethodImpl.argumentTypeNames.

Implements com.sun.jdi.Method.argumentTypeNames.

Returns a list containing a text representation of the type of each formal parameter of this method.

public List<Type>
argumentTypes()

Overrides com.sun.tools.jdi.MethodImpl.argumentTypes.

Implements com.sun.jdi.Method.argumentTypes.

Returns a list containing the type of each formal parameter of this method.

public boolean
isObsolete()

Overrides com.sun.tools.jdi.MethodImpl.isObsolete.

Implements com.sun.jdi.Method.isObsolete.

Determine if this method is obsolete.

public Type
returnType()

Overrides com.sun.tools.jdi.MethodImpl.returnType.

Implements com.sun.jdi.Method.returnType.

Returns the return type, as specified in the declaration of this method.

public String
returnTypeName()

Overrides com.sun.tools.jdi.MethodImpl.returnTypeName.

Implements com.sun.jdi.Method.returnTypeName.

Returns a text representation of the return type, as specified in the declaration of this method.

Inherited from com.sun.tools.jdi.NonConcreteMethodImpl:
allLineLocationsallLineLocationsargSlotCountargumentsbytecodeslocationlocationOfCodeIndexlocationsOfLinelocationsOfLinevariablesvariablesByName

Constructor Detail

ObsoleteMethodImplback to summary
pack-priv ObsoleteMethodImpl(VirtualMachine vm, ReferenceTypeImpl declaringType)

Method Detail

argumentSignaturesback to summary
public List<String> argumentSignatures()

Overrides com.sun.tools.jdi.MethodImpl.argumentSignatures.

argumentTypeback to summary
pack-priv Type argumentType(int index) throws ClassNotLoadedException

Overrides com.sun.tools.jdi.MethodImpl.argumentType.

argumentTypeNamesback to summary
public List<String> argumentTypeNames()

Overrides com.sun.tools.jdi.MethodImpl.argumentTypeNames.

Implements com.sun.jdi.Method.argumentTypeNames.

Doc from com.sun.jdi.Method.argumentTypeNames.

Returns a list containing a text representation of the type of each formal parameter of this method.

This list is always available even if the types have not yet been created or loaded.

argumentTypesback to summary
public List<Type> argumentTypes() throws ClassNotLoadedException

Overrides com.sun.tools.jdi.MethodImpl.argumentTypes.

Implements com.sun.jdi.Method.argumentTypes.

Doc from com.sun.jdi.Method.argumentTypes.

Returns a list containing the type of each formal parameter of this method.

Note

if there is any parameter whose type is a reference type (class, interface, or array) and it has not been created or loaded by the declaring type's class loader - that is, declaringType() .classLoader(), then ClassNotLoadedException will be thrown. Also, a reference type may have been loaded but not yet prepared, in which case the list will be returned but attempts to perform some operations on the type (e.g. fields()) will throw a ClassNotPreparedException. Use ReferenceType#isPrepared() to determine if a reference type is prepared.

Exceptions
ClassNotLoadedException:
if the type has not yet been loaded through the appropriate class loader.
isObsoleteback to summary
public boolean isObsolete()

Overrides com.sun.tools.jdi.MethodImpl.isObsolete.

Implements com.sun.jdi.Method.isObsolete.

Doc from com.sun.jdi.Method.isObsolete.

Determine if this method is obsolete.

returnTypeback to summary
public Type returnType() throws ClassNotLoadedException

Overrides com.sun.tools.jdi.MethodImpl.returnType.

Implements com.sun.jdi.Method.returnType.

Doc from com.sun.jdi.Method.returnType.

Returns the return type, as specified in the declaration of this method.

Note

if the return type of this method is a reference type (class, interface, or array) and it has not been created or loaded by the declaring type's class loader - that is, declaringType() .classLoader(), then ClassNotLoadedException will be thrown. Also, a reference type may have been loaded but not yet prepared, in which case the type will be returned but attempts to perform some operations on the returned type (e.g. fields()) will throw a ClassNotPreparedException. Use ReferenceType#isPrepared() to determine if a reference type is prepared.

Exceptions
ClassNotLoadedException:
if the type has not yet been created or loaded through the appropriate class loader.
returnTypeNameback to summary
public String returnTypeName()

Overrides com.sun.tools.jdi.MethodImpl.returnTypeName.

Implements com.sun.jdi.Method.returnTypeName.

Doc from com.sun.jdi.Method.returnTypeName.

Returns a text representation of the return type, as specified in the declaration of this method.

This type name is always available even if the type has not yet been created or loaded.