public class

InterfaceTypeImpl

extends ReferenceTypeImpl
implements InterfaceType
java.lang.Object
   ↳ com.sun.tools.jdi.TypeImpl
     ↳ com.sun.tools.jdi.ReferenceTypeImpl
       ↳ com.sun.tools.jdi.InterfaceTypeImpl

Summary

[Expand]
Inherited Fields
From class com.sun.tools.jdi.ReferenceTypeImpl
From class com.sun.tools.jdi.TypeImpl
Protected Constructors
InterfaceTypeImpl(VirtualMachine aVm, long aRef)
Public Methods
List<Method> allMethods()
Returns a list containing each Method declared in this type, and its superclasses, implemented interfaces, and/or superinterfaces.
List<ClassType> implementors()
Gets the currently prepared classes which directly implement this interface.
boolean isInitialized()
Determines if this type has been initialized.
List<InterfaceType> subinterfaces()
Gets the currently prepared interfaces which directly extend this interface.
List<InterfaceType> superinterfaces()
Gets the interfaces directly extended by this interface.
String toString()
Returns a string representation of the object.
[Expand]
Inherited Methods
From class com.sun.tools.jdi.ReferenceTypeImpl
From class com.sun.tools.jdi.TypeImpl
From class java.lang.Object
From interface com.sun.jdi.Accessible
From interface com.sun.jdi.InterfaceType
From interface com.sun.jdi.Mirror
From interface com.sun.jdi.ReferenceType
From interface com.sun.jdi.Type
From interface java.lang.Comparable

Protected Constructors

protected InterfaceTypeImpl (VirtualMachine aVm, long aRef)

Public Methods

public List<Method> allMethods ()

Returns a list containing each Method declared in this type, and its superclasses, implemented interfaces, and/or superinterfaces. All declared and inherited methods are included, regardless of whether they are hidden or overridden.

For arrays (ArrayType) and primitive classes, the returned list is always empty.

Returns
  • a List of Method objects; the list has length 0 if no methods exist.

public List<ClassType> implementors ()

Gets the currently prepared classes which directly implement this interface. The returned list contains only those classes that declared this interface in their "implements" clause.

Returns
  • a List of ClassType objects each mirroring a class implementing this interface. If none exist, returns a zero length List.

public boolean isInitialized ()

Determines if this type has been initialized. See the JVM specification for a definition of class verification. For InterfaceType, this method always returns the same value as isPrepared().

For arrays (ArrayType) and primitive classes, the return value is undefined.

Returns
  • true if this type is initialized; false otherwise.

public List<InterfaceType> subinterfaces ()

Gets the currently prepared interfaces which directly extend this interface. The returned list contains only those interfaces that declared this interface in their "extends" clause.

Returns
  • a List of InterfaceType objects each mirroring an interface extending this interface. If none exist, returns a zero length List.

public List<InterfaceType> superinterfaces ()

Gets the interfaces directly extended by this interface. The returned list contains only those interfaces this interface has declared to be extended.

Returns
  • a List of InterfaceType objects each mirroring an interface extended by this interface. If none exist, returns a zero length List.

public String toString ()

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
  • a string representation of the object.