Spec-Zone.ru › OpenJDK 24

Интерфейс ClassElement

Все суперинтерфейсы:
ClassFileElement
Все известные подинтерфейсы:
AccessFlags, ClassFileVersion, CompilationIDAttribute, DeprecatedAttribute, EnclosingMethodAttribute, FieldModel, InnerClassesAttribute, Interfaces, MethodModel, ModuleAttribute, ModuleHashesAttribute, ModuleMainClassAttribute, ModulePackagesAttribute, ModuleResolutionAttribute, ModuleTargetAttribute, NestHostAttribute, NestMembersAttribute, PermittedSubclassesAttribute, RecordAttribute, RuntimeInvisibleAnnotationsAttribute, RuntimeInvisibleTypeAnnotationsAttribute, RuntimeVisibleAnnotationsAttribute, RuntimeVisibleTypeAnnotationsAttribute, SignatureAttribute, SourceDebugExtensionAttribute, SourceFileAttribute, SourceIDAttribute, Superclass, SyntheticAttribute, UnknownAttribute
Все известные реализующие классы:
CustomAttribute
public sealed interface ClassElement extends ClassFileElement permits AccessFlags, Superclass, Interfaces, ClassFileVersion, FieldModel, MethodModel, CustomAttribute<T>, CompilationIDAttribute, DeprecatedAttribute, EnclosingMethodAttribute, InnerClassesAttribute, ModuleAttribute, ModuleHashesAttribute, ModuleMainClassAttribute, ModulePackagesAttribute, ModuleResolutionAttribute, ModuleTargetAttribute, NestHostAttribute, NestMembersAttribute, PermittedSubclassesAttribute, RecordAttribute, RuntimeInvisibleAnnotationsAttribute, RuntimeInvisibleTypeAnnotationsAttribute, RuntimeVisibleAnnotationsAttribute, RuntimeVisibleTypeAnnotationsAttribute, SignatureAttribute, SourceDebugExtensionAttribute, SourceFileAttribute, SourceIDAttribute, SyntheticAttribute, UnknownAttribute
Маркерный интерфейс для элемента члена ClassModel. Такой элемент может появляться при обходе ClassModel, если не указано иное, предоставляться ClassBuilder и обрабатываться ClassTransform.

AccessFlags и ClassFileVersion являются элементами члена класса, которые появляются ровно один раз во время обхода ClassModel. Superclass и Interfaces могут отсутствовать или появляться не более одного раза. ClassBuilder может предоставить альтернативный суперкласс, если он не определен, но необходим.

Граф иерархии класса (герметичный):
Sealed class hierarchy graph for ClassElementSealed class hierarchy graph for ClassElement
С:
24
См. также:
  • Элементы членства
  • MethodElement
  • FieldElement
  • CodeElement

© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://download.java.net/java/early_access/jdk24/docs/api/java.base/java/lang/classfile/ClassElement.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API