Uses of Interface
java.lang.classfile.ClassElement
Packages that use ClassElement
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing
class
file attributes for the java.lang.classfile
library.-
Uses of ClassElement in java.lang.classfile
Subinterfaces of ClassElement in java.lang.classfileModifier and TypeInterfaceDescriptioninterface
Models the access flags for a class, method, or field.interface
Models the minor and major version numbers of aclass
file (JVMS 4.1).interface
Models a field.interface
Models the interfaces (JVMS 4.1) of a class.interface
Models a method.interface
Models the superclass (JVMS 4.1) of a class.Classes in java.lang.classfile that implement ClassElementModifier and TypeClassDescriptionclass
CustomAttribute<T extends CustomAttribute<T>>
Models a user-defined attribute in aclass
file.Subinterfaces with type arguments of type ClassElement in java.lang.classfileModifier and TypeInterfaceDescriptioninterface
A builder for aclass
file.interface
Models aclass
file.interface
A transformation on streams ofClassElement
.Method parameters in java.lang.classfile with type arguments of type ClassElementModifier and TypeMethodDescriptionstatic ClassTransform
ClassTransform.dropping
(Predicate<ClassElement> filter) Creates a class transform that passes each element through to the builder, except for those that the suppliedPredicate
returns true for. -
Uses of ClassElement in java.lang.classfile.attribute
Subinterfaces of ClassElement in java.lang.classfile.attributeModifier and TypeInterfaceDescriptioninterface
Models theCompilationID
attribute, which records the compilation time of theclass
file.interface
Models theDeprecated
attribute (JVMS 4.7.15), which indicates this structure has been superseded.interface
Models theEnclosingMethod
attribute (JVMS 4.7.7), which indicates that this class is a local or anonymous class, and indicates the enclosing method or constructor of this class if this class is enclosed in exactly one method or constructor.interface
Models theInnerClasses
attribute (JVMS 4.7.6), which records which classes referenced by thisclass
file are nested classes.interface
interface
Models theModuleHashes
attribute, which appears on classes that represent module descriptors to capture the hashes of a set of co-delivered modules.interface
Models theModuleMainClass
attribute (JVMS 4.7.27), which appears on classes that represent module descriptors to indicate the main class of the module.interface
Models theModulePackages
attribute (JVMS 4.7.26), which can appear on classes that represent module descriptors to indicate packages in the module used by the module descriptor.interface
Models theModuleResolution
attribute, which can appear on classes that represent module descriptors, to capture resolution metadata for modules.interface
Models theModuleTarget
attribute, which can appear on classes that represent module descriptors, to represent constraints on the target platform.interface
interface
Models theNestMembers
attribute (JVMS 4.7.29), which indicates that this class is the host of a nest and the other nest members.interface
Models thePermittedSubclasses
attribute (JVMS 4.7.31), which indicates this class or interface is sealed, and which classes or interfaces may extend or implement this class or interface.interface
interface
Models theRuntimeInvisibleAnnotations
attribute (JVMS 4.7.17), which stores declaration annotations on this structure that are visible toclass
file consumers but are not visible to core reflection.interface
Models theRuntimeInvisibleTypeAnnotations
attribute (JVMS 4.7.21), which stores type-use annotations for the annotated uses of types in this structure that are visible toclass
file consumers but are not visible to core reflection.interface
Models theRuntimeVisibleAnnotations
attribute (JVMS 4.7.16), which stores declaration annotations on this structure that are visible to bothclass
file consumers and core reflection.interface
Models theRuntimeVisibleTypeAnnotations
attribute (JVMS 4.7.20), which stores type-use annotations for the annotated uses of types in this structure that are visible to bothclass
file consumers and core reflection.interface
interface
Models theSourceDebugExtension
attribute (JVMS 4.7.11), which stores arbitrary modified UTF-8 data.interface
Models theSourceFile
attribute (JVMS 4.7.10), which indicates the name of the source file from which thisclass
file was compiled.interface
Models theSourceID
attribute, which records the last modified time of the source file from which thisclass
file was compiled.interface
interface
Models an unknown attribute read from aclass
file.