public interface

InterfaceType

implements ReferenceType
com.sun.jdi.InterfaceType
Known Indirect Subclasses

Class Overview

A mirror of an interface in the target VM. An InterfaceType is a refinement of ReferenceType that applies to true interfaces in the JLS sense of the definition (not a class, not an array type). An interface type will never be returned by referenceType(), but it may be in the list of implemented interfaces for a ClassType that is returned by that method.

See Also

Summary

Public Methods
abstract List<ClassType> implementors()
Gets the currently prepared classes which directly implement this interface.
abstract List<InterfaceType> subinterfaces()
Gets the currently prepared interfaces which directly extend this interface.
abstract List<InterfaceType> superinterfaces()
Gets the interfaces directly extended by this interface.
[Expand]
Inherited Methods
From interface com.sun.jdi.Accessible
From interface com.sun.jdi.Mirror
From interface com.sun.jdi.ReferenceType
From interface com.sun.jdi.Type
From interface java.lang.Comparable

Public Methods

public abstract 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 abstract 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 abstract 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.
Throws
ClassNotPreparedException if this class not yet been prepared.