# Uses of Package
java.lang.classfile

Packages that use java.lang.classfilePREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.attribute
Provides interfaces describing classfile attributes for the `java.lang.classfile`PREVIEW library.
java.lang.classfile.components
Provides specific components, transformations, and tools built on top of the `java.lang.classfile`PREVIEW library.
java.lang.classfile.constantpool
Provides interfaces describing classfile constant pool entries for the `java.lang.classfile`PREVIEW library.
java.lang.classfile.instruction
Provides interfaces describing code instructions for the `java.lang.classfile`PREVIEW library.

- Classes in java.lang.classfilePREVIEW used by java.lang.classfilePREVIEW
  Class
  Description
  AccessFlags
  Preview.
  Models the access flags for a class, method, or field.
  Annotation
  Preview.
  Models an annotation on a declaration.
  AnnotationElement
  Preview.
  Models a key-value pair of an annotation.
  AnnotationValue
  Preview.
  Models the value of a key-value pair of an annotation.
  AnnotationValue.OfAnnotation
  Preview.
  Models an annotation-valued element
  AnnotationValue.OfArray
  Preview.
  Models an array-valued element
  AnnotationValue.OfClass
  Preview.
  Models a class-valued element
  AnnotationValue.OfConstant
  Preview.
  Models a constant-valued element
  AnnotationValue.OfEnum
  Preview.
  Models an enum-valued element
  Attribute
  Preview.
  Models a classfile attribute 4.7.
  AttributedElement
  Preview.
  A `ClassFileElement`PREVIEW describing an entity that has attributes, such as a class, field, method, code attribute, or record component.
  AttributeMapper
  Preview.
  Bidirectional mapper between the classfile representation of an attribute and how that attribute is modeled in the API.
  AttributeMapper.AttributeStability
  Preview.
  Attribute stability indicator
  BootstrapMethodEntry
  Preview.
  Models an entry in the bootstrap method table.
  BufWriter
  Preview.
  Supports writing portions of a classfile to a growable buffer.
  ClassBuilder
  Preview.
  A builder for classfiles.
  ClassElement
  Preview.
  A marker interface for elements that can appear when traversing a `ClassModel`PREVIEW or be presented to a `ClassBuilder`PREVIEW.
  ClassFile
  Preview.
  Represents a context for parsing, transforming, and generating classfiles.
  ClassFile.AttributeMapperOption
  Preview.
  Option describing attribute mappers for custom attributes.
  ClassFile.AttributesProcessingOption
  Preview.
  Option describing whether to process or discard unrecognized or problematic original attributes when a class, record component, field, method or code is transformed in its exploded form.
  ClassFile.ClassHierarchyResolverOption
  Preview.
  Option describing the class hierarchy resolver to use when generating stack maps.
  ClassFile.ConstantPoolSharingOption
  Preview.
  Option describing whether to preserve the original constant pool when transforming a classfile.
  ClassFile.DeadCodeOption
  Preview.
  Option describing whether to patch out unreachable code.
  ClassFile.DeadLabelsOption
  Preview.
  Option describing whether to filter unresolved labels.
  ClassFile.DebugElementsOption
  Preview.
  Option describing whether to process or discard debug elements.
  ClassFile.LineNumbersOption
  Preview.
  Option describing whether to process or discard line numbers.
  ClassFile.Option
  Preview.
  An option that affects the parsing and writing of classfiles.
  ClassFile.ShortJumpsOption
  Preview.
  Option describing whether to automatically rewrite short jumps to long when necessary.
  ClassFile.StackMapsOption
  Preview.
  Option describing whether to generate stackmaps.
  ClassFileBuilder
  Preview.
  A builder for a classfile or portion of a classfile.
  ClassFileElement
  Preview.
  Immutable model for a portion of (or the entirety of) a classfile.
  ClassFileTransform
  Preview.
  A transformation on streams of elements.
  ClassFileTransform.ResolvedTransform
  Preview.
  The result of binding a transform to a builder.
  ClassFileVersion
  Preview.
  Models the classfile version information for a class.
  ClassHierarchyResolver
  Preview.
  Provides class hierarchy information for generating correct stack maps during code building.
  ClassHierarchyResolver.ClassHierarchyInfo
  Preview.
  Information about a resolved class.
  ClassModel
  Preview.
  Models a classfile.
  ClassReader
  Preview.
  Supports reading from a classfile.
  ClassSignature
  Preview.
  Models the generic signature of a class file, as defined by 4.7.9.
  ClassTransform
  Preview.
  A transformation on streams of `ClassElement`PREVIEW.
  CodeBuilder
  Preview.
  A builder for code attributes (method bodies).
  CodeBuilder.BlockCodeBuilder
  Preview.
  A builder for blocks of code.
  CodeBuilder.CatchBuilder
  Preview.
  A builder to add catch blocks.
  CodeElement
  Preview.
  A marker interface for elements that can appear when traversing a `CodeModel`PREVIEW or be presented to a `CodeBuilder`PREVIEW.
  CodeModel
  Preview.
  Models the body of a method (the `Code` attribute).
  CodeTransform
  Preview.
  A transformation on streams of `CodeElement`PREVIEW.
  CompoundElement
  Preview.
  A `ClassFileElement`PREVIEW that has complex structure defined in terms of other classfile elements, such as a method, field, method body, or entire class.
  CustomAttribute
  Preview.
  Models a non-standard attribute of a classfile.
  FieldBuilder
  Preview.
  A builder for fields.
  FieldElement
  Preview.
  A marker interface for elements that can appear when traversing a `FieldModel`PREVIEW or be presented to a `FieldBuilder`PREVIEW.
  FieldModel
  Preview.
  Models a field.
  FieldTransform
  Preview.
  A transformation on streams of `FieldElement`PREVIEW.
  Interfaces
  Preview.
  Models the interfaces of a class.
  Label
  Preview.
  A marker for a position within the instructions of a method body.
  MethodBuilder
  Preview.
  A builder for methods.
  MethodElement
  Preview.
  A marker interface for elements that can appear when traversing a `MethodModel`PREVIEW or be presented to a `MethodBuilder`PREVIEW.
  MethodModel
  Preview.
  Models a method.
  MethodSignature
  Preview.
  Models the generic signature of a method, as defined by 4.7.9.
  MethodTransform
  Preview.
  A transformation on streams of `MethodElement`PREVIEW.
  Opcode
  Preview.
  Describes the opcodes of the JVM instruction set, as described in 6.5.
  Opcode.Kind
  Preview.
  Kinds of opcodes.
  Signature
  Preview.
  Models generic Java type signatures, as defined in 4.7.9.1.
  Signature.ArrayTypeSig
  Preview.
  Models the signature of an array type.
  Signature.BaseTypeSig
  Preview.
  Models the signature of a primitive type or void
  Signature.ClassTypeSig
  Preview.
  Models the signature of a possibly-parameterized class or interface type.
  Signature.RefTypeSig
  Preview.
  Models the signature of a reference type, which may be a class, interface, type variable, or array type.
  Signature.ThrowableSig
  Preview.
  Models a signature for a throwable type.
  Signature.TypeArg
  Preview.
  Models the type argument.
  Signature.TypeArg.WildcardIndicator
  Preview.
  Indicator for whether a wildcard has default bound, no bound, an upper bound, or a lower bound
  Signature.TypeParam
  Preview.
  Models a signature for a type parameter of a generic class or method.
  Signature.TypeVarSig
  Preview.
  Models the signature of a type variable.
  Superclass
  Preview.
  Models the superclass of a class.
  TypeAnnotation
  Preview.
  Models an annotation on a type use, as defined in 4.7.19 and 4.7.20.
  TypeAnnotation.CatchTarget
  Preview.
  Indicates that an annotation appears on the i'th type in an exception parameter declaration.
  TypeAnnotation.EmptyTarget
  Preview.
  Indicates that an annotation appears on either the type in a field declaration, the return type of a method, the type of a newly constructed object, or the receiver type of a method or constructor.
  TypeAnnotation.FormalParameterTarget
  Preview.
  Indicates that an annotation appears on the type in a formal parameter declaration of a method, constructor, or lambda expression.
  TypeAnnotation.LocalVarTarget
  Preview.
  Indicates that an annotation appears on the type in a local variable declaration, including a variable declared as a resource in a try-with-resources statement.
  TypeAnnotation.LocalVarTargetInfo
  Preview.
  Indicates a range of code array offsets within which a local variable has a value, and the index into the local variable array of the current frame at which that local variable can be found.
  TypeAnnotation.OffsetTarget
  Preview.
  Indicates that an annotation appears on either the type in an instanceof expression or a new expression, or the type before the :: in a method reference expression.
  TypeAnnotation.SupertypeTarget
  Preview.
  Indicates that an annotation appears on a type in the extends or implements clause of a class or interface declaration.
  TypeAnnotation.TargetInfo
  Preview.
  Specifies which type in a declaration or expression is being annotated.
  TypeAnnotation.TargetType
  Preview.
  The kind of target on which the annotation appears, as defined in 4.7.20.1.
  TypeAnnotation.ThrowsTarget
  Preview.
  Indicates that an annotation appears on the i'th type in the throws clause of a method or constructor declaration.
  TypeAnnotation.TypeArgumentTarget
  Preview.
  Indicates that an annotation appears either on the i'th type in a cast expression, or on the i'th type argument in the explicit type argument list for any of the following: a new expression, an explicit constructor invocation statement, a method invocation expression, or a method reference expression.
  TypeAnnotation.TypeParameterBoundTarget
  Preview.
  Indicates that an annotation appears on the i'th bound of the j'th type parameter declaration of a generic class, interface, method, or constructor.
  TypeAnnotation.TypeParameterTarget
  Preview.
  Indicates that an annotation appears on the declaration of the i'th type parameter of a generic class, generic interface, generic method, or generic constructor.
  TypeAnnotation.TypePathComponent
  Preview.
  JVMS: Type_path structure identifies which part of the type is annotated, as defined in 4.7.20.2
  TypeAnnotation.TypePathComponent.Kind
  Preview.
  Type path kind, as defined in 4.7.20.2
  TypeKind
  Preview.
  Describes the types that can be part of a field or method descriptor.
  WritableElement
  Preview.
  A classfile element that can encode itself as a stream of bytes in the encoding expected by the classfile format.
- Classes in java.lang.classfilePREVIEW used by java.lang.classfile.attributePREVIEW
  Class
  Description
  Annotation
  Preview.
  Models an annotation on a declaration.
  AnnotationValue
  Preview.
  Models the value of a key-value pair of an annotation.
  Attribute
  Preview.
  Models a classfile attribute 4.7.
  AttributedElement
  Preview.
  A `ClassFileElement`PREVIEW describing an entity that has attributes, such as a class, field, method, code attribute, or record component.
  BootstrapMethodEntry
  Preview.
  Models an entry in the bootstrap method table.
  ClassElement
  Preview.
  A marker interface for elements that can appear when traversing a `ClassModel`PREVIEW or be presented to a `ClassBuilder`PREVIEW.
  ClassFileElement
  Preview.
  Immutable model for a portion of (or the entirety of) a classfile.
  ClassSignature
  Preview.
  Models the generic signature of a class file, as defined by 4.7.9.
  CodeElement
  Preview.
  A marker interface for elements that can appear when traversing a `CodeModel`PREVIEW or be presented to a `CodeBuilder`PREVIEW.
  CodeModel
  Preview.
  Models the body of a method (the `Code` attribute).
  CompoundElement
  Preview.
  A `ClassFileElement`PREVIEW that has complex structure defined in terms of other classfile elements, such as a method, field, method body, or entire class.
  FieldElement
  Preview.
  A marker interface for elements that can appear when traversing a `FieldModel`PREVIEW or be presented to a `FieldBuilder`PREVIEW.
  Label
  Preview.
  A marker for a position within the instructions of a method body.
  MethodElement
  Preview.
  A marker interface for elements that can appear when traversing a `MethodModel`PREVIEW or be presented to a `MethodBuilder`PREVIEW.
  MethodSignature
  Preview.
  Models the generic signature of a method, as defined by 4.7.9.
  Signature
  Preview.
  Models generic Java type signatures, as defined in 4.7.9.1.
  TypeAnnotation
  Preview.
  Models an annotation on a type use, as defined in 4.7.19 and 4.7.20.
  WritableElement
  Preview.
  A classfile element that can encode itself as a stream of bytes in the encoding expected by the classfile format.
- Classes in java.lang.classfilePREVIEW used by java.lang.classfile.componentsPREVIEW
  Class
  Description
  AccessFlags
  Preview.
  Models the access flags for a class, method, or field.
  ClassFile
  Preview.
  Represents a context for parsing, transforming, and generating classfiles.
  ClassFileTransform
  Preview.
  A transformation on streams of elements.
  ClassModel
  Preview.
  Models a classfile.
  ClassTransform
  Preview.
  A transformation on streams of `ClassElement`PREVIEW.
  CodeBuilder
  Preview.
  A builder for code attributes (method bodies).
  CodeTransform
  Preview.
  A transformation on streams of `CodeElement`PREVIEW.
  CompoundElement
  Preview.
  A `ClassFileElement`PREVIEW that has complex structure defined in terms of other classfile elements, such as a method, field, method body, or entire class.
  FieldTransform
  Preview.
  A transformation on streams of `FieldElement`PREVIEW.
  Label
  Preview.
  A marker for a position within the instructions of a method body.
  MethodTransform
  Preview.
  A transformation on streams of `MethodElement`PREVIEW.
  TypeKind
  Preview.
  Describes the types that can be part of a field or method descriptor.
- Classes in java.lang.classfilePREVIEW used by java.lang.classfile.constantpoolPREVIEW
  Class
  Description
  BootstrapMethodEntry
  Preview.
  Models an entry in the bootstrap method table.
  BufWriter
  Preview.
  Supports writing portions of a classfile to a growable buffer.
  ClassFileElement
  Preview.
  Immutable model for a portion of (or the entirety of) a classfile.
  ClassModel
  Preview.
  Models a classfile.
  TypeKind
  Preview.
  Describes the types that can be part of a field or method descriptor.
  WritableElement
  Preview.
  A classfile element that can encode itself as a stream of bytes in the encoding expected by the classfile format.
- Classes in java.lang.classfilePREVIEW used by java.lang.classfile.instructionPREVIEW
  Class
  Description
  BufWriter
  Preview.
  Supports writing portions of a classfile to a growable buffer.
  ClassFileElement
  Preview.
  Immutable model for a portion of (or the entirety of) a classfile.
  CodeElement
  Preview.
  A marker interface for elements that can appear when traversing a `CodeModel`PREVIEW or be presented to a `CodeBuilder`PREVIEW.
  Instruction
  Preview.
  Models an executable instruction in a method body.
  Label
  Preview.
  A marker for a position within the instructions of a method body.
  Opcode
  Preview.
  Describes the opcodes of the JVM instruction set, as described in 6.5.
  PseudoInstruction
  Preview.
  Models metadata about a `CodeAttribute`PREVIEW, such as entries in the exception table, line number table, local variable table, or the mapping between instructions and labels.
  Signature
  Preview.
  Models generic Java type signatures, as defined in 4.7.9.1.
  TypeKind
  Preview.
  Describes the types that can be part of a field or method descriptor.