public interface InterfaceType extends ReferenceType
ReferenceType
の改良版です。ObjectReference.referenceType()
によってインタフェース型が返されることは決してありませんが、そのメソッドによって返される ClassType
の実装済みインタフェースのリストに含まれることはあります。ObjectReference
修飾子と型 | メソッドと説明 |
---|---|
List<ClassType> |
implementors()
このインタフェースを直接実装する、現在準備のできたクラスを取得します。
|
List<InterfaceType> |
subinterfaces()
このインタフェースを直接拡張する、現在準備のできたインタフェースを取得します。
|
List<InterfaceType> |
superinterfaces()
このインタフェースにより直接拡張されたインタフェースを取得します。
|
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
オブジェクトの List。このようなオブジェクトが存在しない場合、長さゼロのリストを返す。ClassNotPreparedException
- このクラスがまだ準備されていない場合。List<InterfaceType> subinterfaces()
InterfaceType
オブジェクトの List。このようなオブジェクトが存在しない場合、長さゼロのリストを返す。
Copyright © 1999, 2013, Oracle and/or its affiliates. All rights reserved.