com.sun.jdi
Interface InterfaceType
- public abstract interface InterfaceType
- extends ReferenceType
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
ObjectReference.referenceType()
, but it may be in the list
of implemented interfaces for a ClassType
that is returned
by that method.
- Since:
- 1.3
- See Also:
ObjectReference
Method Summary |
java.util.List |
implementors()
Gets the currently prepared classes which directly implement this
interface. |
java.util.List |
subinterfaces()
Gets the currently prepared interfaces which directly extend this
interface. |
java.util.List |
superinterfaces()
Gets the interfaces directly extended by this interface. |
Methods inherited from interface com.sun.jdi.ReferenceType |
allFields,
allLineLocations,
allMethods,
classLoader,
classObject,
equals,
failedToInitialize,
fieldByName,
fields,
getValue,
getValues,
hashCode,
isAbstract,
isFinal,
isInitialized,
isPrepared,
isStatic,
isVerified,
locationsOfLine,
methods,
methodsByName,
methodsByName,
name,
nestedTypes,
sourceName,
visibleFields,
visibleMethods |
Methods inherited from interface java.lang.Comparable |
compareTo |
superinterfaces
public java.util.List 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.
- ObjectCollectedException - if this interface has been
unloaded and garbage collected.
subinterfaces
public java.util.List 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. - Throws:
- ObjectCollectedException - if this interface has been
unloaded and garbage collected.
implementors
public java.util.List 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. - Throws:
- ObjectCollectedException - if this interface has been
unloaded and garbage collected.