public interface InterfaceType extends ReferenceType
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.ObjectReference
Modifier and Type | Method and Description |
---|---|
List<ClassType> |
implementors()
Gets the currently prepared classes which directly implement this
interface.
|
List<InterfaceType> |
subinterfaces()
Gets the currently prepared interfaces which directly extend this
interface.
|
List<InterfaceType> |
superinterfaces()
Gets the interfaces directly extended by this interface.
|
allFields, allLineLocations, allLineLocations, allMethods, availableStrata, classLoader, classObject, constantPool, constantPoolCount, defaultStratum, equals, failedToInitialize, fieldByName, fields, genericSignature, getValue, getValues, hashCode, instances, isAbstract, isFinal, isInitialized, isPrepared, isStatic, isVerified, locationsOfLine, locationsOfLine, majorVersion, methods, methodsByName, methodsByName, minorVersion, name, nestedTypes, sourceDebugExtension, sourceName, sourceNames, sourcePaths, visibleFields, visibleMethods
toString, virtualMachine
compareTo
isPackagePrivate, isPrivate, isProtected, isPublic, modifiers
List<InterfaceType> superinterfaces()
InterfaceType
objects each mirroring
an interface extended by this interface.
If none exist, returns a zero length List.ClassNotPreparedException
- if this class not yet been
prepared.List<InterfaceType> subinterfaces()
InterfaceType
objects each mirroring
an interface extending this interface.
If none exist, returns a zero length List.List<ClassType> implementors()
ClassType
objects each mirroring
a class implementing this interface.
If none exist, returns a zero length List.
Copyright © 1999, 2020, Oracle and/or its affiliates. All rights reserved.