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 TypeInterfaceDescriptioninterfaceModels the access flags for a class, method, or field.interfaceModels the minor and major version numbers of aclassfile (JVMS 4.1).interfaceModels a field.interfaceModels the interfaces (JVMS 4.1) of a class.interfaceModels a method.interfaceModels the superclass (JVMS 4.1) of a class.Classes in java.lang.classfile that implement ClassElementModifier and TypeClassDescriptionclassCustomAttribute<T extends CustomAttribute<T>>Models a user-defined attribute in aclassfile.Subinterfaces with type arguments of type ClassElement in java.lang.classfileModifier and TypeInterfaceDescriptioninterfaceA builder for aclassfile.interfaceModels aclassfile.interfaceA transformation on streams ofClassElement.Method parameters in java.lang.classfile with type arguments of type ClassElementModifier and TypeMethodDescriptionstatic ClassTransformClassTransform.dropping(Predicate<ClassElement> filter) Creates a class transform that passes each element through to the builder, except for those that the suppliedPredicatereturns true for. -
Uses of ClassElement in java.lang.classfile.attribute
Subinterfaces of ClassElement in java.lang.classfile.attributeModifier and TypeInterfaceDescriptioninterfaceModels theCompilationIDattribute, which records the compilation time of theclassfile.interfaceModels theDeprecatedattribute (JVMS 4.7.15), which indicates this structure has been superseded.interfaceModels theEnclosingMethodattribute (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.interfaceModels theInnerClassesattribute (JVMS 4.7.6), which records which classes referenced by thisclassfile are nested classes.interfaceinterfaceModels theModuleHashesattribute, which appears on classes that represent module descriptors to capture the hashes of a set of co-delivered modules.interfaceModels theModuleMainClassattribute (JVMS 4.7.27), which appears on classes that represent module descriptors to indicate the main class of the module.interfaceModels theModulePackagesattribute (JVMS 4.7.26), which can appear on classes that represent module descriptors to indicate packages in the module used by the module descriptor.interfaceModels theModuleResolutionattribute, which can appear on classes that represent module descriptors, to capture resolution metadata for modules.interfaceModels theModuleTargetattribute, which can appear on classes that represent module descriptors, to represent constraints on the target platform.interfaceinterfaceModels theNestMembersattribute (JVMS 4.7.29), which indicates that this class is the host of a nest and the other nest members.interfaceModels thePermittedSubclassesattribute (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.interfaceinterfaceModels theRuntimeInvisibleAnnotationsattribute (JVMS 4.7.17), which stores declaration annotations on this structure that are visible toclassfile consumers but are not visible to core reflection.interfaceModels theRuntimeInvisibleTypeAnnotationsattribute (JVMS 4.7.21), which stores type-use annotations for the annotated uses of types in this structure that are visible toclassfile consumers but are not visible to core reflection.interfaceModels theRuntimeVisibleAnnotationsattribute (JVMS 4.7.16), which stores declaration annotations on this structure that are visible to bothclassfile consumers and core reflection.interfaceModels theRuntimeVisibleTypeAnnotationsattribute (JVMS 4.7.20), which stores type-use annotations for the annotated uses of types in this structure that are visible to bothclassfile consumers and core reflection.interfaceinterfaceModels theSourceDebugExtensionattribute (JVMS 4.7.11), which stores arbitrary modified UTF-8 data.interfaceModels theSourceFileattribute (JVMS 4.7.10), which indicates the name of the source file from which thisclassfile was compiled.interfaceModels theSourceIDattribute, which records the last modified time of the source file from which thisclassfile was compiled.interfaceinterfaceModels an unknown attribute read from aclassfile.