public class

ObsoleteMethodImpl

extends NonConcreteMethodImpl
java.lang.Object
   ↳ com.sun.tools.jdi.TypeComponentImpl
     ↳ com.sun.tools.jdi.MethodImpl
       ↳ com.sun.tools.jdi.NonConcreteMethodImpl
         ↳ com.sun.tools.jdi.ObsoleteMethodImpl

Class Overview

Represents methods which have changed when the class was redefined.

Summary

[Expand]
Inherited Fields
From class com.sun.tools.jdi.TypeComponentImpl
Public Methods
List<String> argumentSignatures()
List<String> argumentTypeNames()
Returns a list containing a text representation of the type of each formal parameter of this method.
List<Type> argumentTypes()
Returns a list containing the type of each formal parameter of this method.
boolean isObsolete()
Determine if this method is obsolete.
Type returnType()
Returns the return type, as specified in the declaration of this method.
String returnTypeName()
Returns a text representation of the return type, as specified in the declaration of this method.
[Expand]
Inherited Methods
From class com.sun.tools.jdi.NonConcreteMethodImpl
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<String> argumentSignatures ()

public List<String> 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.

Returns
  • a List of String, one List element for each parameter of this method. Each element represents the type of a formal parameter as specified at compile-time. If the formal parameter was declared with an ellipsis, then it is represented as an array of the type before the ellipsis.

public List<Type> 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 isPrepared() to determine if a reference type is prepared.

Returns
  • return a List of Type, one List element for each parameter of this method. Each element represents the type of a formal parameter as specified at compile-time. If the formal parameter was declared with an ellipsis, then it is represented as an array of the type before the ellipsis.

public boolean isObsolete ()

Determine if this method is obsolete.

Returns

public Type 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 isPrepared() to determine if a reference type is prepared.

Returns
  • the return Type of this method.

public String 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.

Returns
  • a text representation of the declared return type of this method.