Uses of Package
java.lang.classfile
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing classfile attributes for the
java.lang.classfile
PREVIEW library.Provides specific components, transformations, and tools built on top of the
java.lang.classfile
PREVIEW library.Provides interfaces describing classfile constant pool entries for the
java.lang.classfile
PREVIEW library.Provides interfaces describing code instructions for the
java.lang.classfile
PREVIEW library.-
ClassDescriptionPreview.Models the access flags for a class, method, or field.Preview.Models an annotation on a declaration.Preview.Models a key-value pair of an annotation.Preview.Models the value of a key-value pair of an annotation.Preview.Models an annotation-valued elementPreview.Models an array-valued elementPreview.Models a class-valued elementPreview.Models a constant-valued elementPreview.Models an enum-valued elementPreview.Models a classfile attribute 4.7.Preview.A
ClassFileElement
PREVIEW describing an entity that has attributes, such as a class, field, method, code attribute, or record component.Preview.Bidirectional mapper between the classfile representation of an attribute and how that attribute is modeled in the API.Preview.Attribute stability indicatorPreview.Models an entry in the bootstrap method table.Preview.Supports writing portions of a classfile to a growable buffer.Preview.A builder for classfiles.Preview.A marker interface for elements that can appear when traversing aClassModel
PREVIEW or be presented to aClassBuilder
PREVIEW.Preview.Represents a context for parsing, transforming, and generating classfiles.Preview.Option describing attribute mappers for custom attributes.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.Preview.Option describing the class hierarchy resolver to use when generating stack maps.Preview.Option describing whether to preserve the original constant pool when transforming a classfile.Preview.Option describing whether to patch out unreachable code.Preview.Option describing whether to filter unresolved labels.Preview.Option describing whether to process or discard debug elements.Preview.Option describing whether to process or discard line numbers.Preview.An option that affects the parsing and writing of classfiles.Preview.Option describing whether to automatically rewrite short jumps to long when necessary.Preview.Option describing whether to generate stackmaps.Preview.A builder for a classfile or portion of a classfile.Preview.Immutable model for a portion of (or the entirety of) a classfile.Preview.A transformation on streams of elements.Preview.The result of binding a transform to a builder.Preview.Models the classfile version information for a class.Preview.Provides class hierarchy information for generating correct stack maps during code building.Preview.Information about a resolved class.Preview.Models a classfile.Preview.Supports reading from a classfile.Preview.Models the generic signature of a class file, as defined by 4.7.9.Preview.A transformation on streams ofClassElement
PREVIEW.Preview.A builder for code attributes (method bodies).Preview.A builder for blocks of code.Preview.A builder to add catch blocks.Preview.A marker interface for elements that can appear when traversing aCodeModel
PREVIEW or be presented to aCodeBuilder
PREVIEW.Preview.Models the body of a method (theCode
attribute).Preview.A transformation on streams ofCodeElement
PREVIEW.Preview.AClassFileElement
PREVIEW that has complex structure defined in terms of other classfile elements, such as a method, field, method body, or entire class.Preview.Models a non-standard attribute of a classfile.Preview.A builder for fields.Preview.A marker interface for elements that can appear when traversing aFieldModel
PREVIEW or be presented to aFieldBuilder
PREVIEW.Preview.Models a field.Preview.A transformation on streams ofFieldElement
PREVIEW.Preview.Models the interfaces of a class.Preview.A marker for a position within the instructions of a method body.Preview.A builder for methods.Preview.A marker interface for elements that can appear when traversing aMethodModel
PREVIEW or be presented to aMethodBuilder
PREVIEW.Preview.Models a method.Preview.Models the generic signature of a method, as defined by 4.7.9.Preview.A transformation on streams ofMethodElement
PREVIEW.Preview.Describes the opcodes of the JVM instruction set, as described in 6.5.Preview.Kinds of opcodes.Preview.Models generic Java type signatures, as defined in 4.7.9.1.Preview.Models the signature of an array type.Preview.Models the signature of a primitive type or voidPreview.Models the signature of a possibly-parameterized class or interface type.Preview.Models the signature of a reference type, which may be a class, interface, type variable, or array type.Preview.Models a signature for a throwable type.Preview.Models the type argument.Preview.Indicator for whether a wildcard has default bound, no bound, an upper bound, or a lower boundPreview.Models a signature for a type parameter of a generic class or method.Preview.Models the signature of a type variable.Preview.Models the superclass of a class.Preview.Indicates that an annotation appears on the i'th type in an exception parameter declaration.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.Preview.Indicates that an annotation appears on the type in a formal parameter declaration of a method, constructor, or lambda expression.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.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.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.Preview.Indicates that an annotation appears on a type in the extends or implements clause of a class or interface declaration.Preview.Specifies which type in a declaration or expression is being annotated.Preview.The kind of target on which the annotation appears, as defined in 4.7.20.1.Preview.Indicates that an annotation appears on the i'th type in the throws clause of a method or constructor declaration.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.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.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.Preview.JVMS: Type_path structure identifies which part of the type is annotated, as defined in 4.7.20.2Preview.Type path kind, as defined in 4.7.20.2Preview.Describes the types that can be part of a field or method descriptor.Preview.A classfile element that can encode itself as a stream of bytes in the encoding expected by the classfile format. -
ClassDescriptionPreview.Models an annotation on a declaration.Preview.Models the value of a key-value pair of an annotation.Preview.Models a classfile attribute 4.7.Preview.A
ClassFileElement
PREVIEW describing an entity that has attributes, such as a class, field, method, code attribute, or record component.Preview.Models an entry in the bootstrap method table.Preview.A marker interface for elements that can appear when traversing aClassModel
PREVIEW or be presented to aClassBuilder
PREVIEW.Preview.Immutable model for a portion of (or the entirety of) a classfile.Preview.Models the generic signature of a class file, as defined by 4.7.9.Preview.A marker interface for elements that can appear when traversing aCodeModel
PREVIEW or be presented to aCodeBuilder
PREVIEW.Preview.Models the body of a method (theCode
attribute).Preview.AClassFileElement
PREVIEW that has complex structure defined in terms of other classfile elements, such as a method, field, method body, or entire class.Preview.A marker interface for elements that can appear when traversing aFieldModel
PREVIEW or be presented to aFieldBuilder
PREVIEW.Preview.A marker for a position within the instructions of a method body.Preview.A marker interface for elements that can appear when traversing aMethodModel
PREVIEW or be presented to aMethodBuilder
PREVIEW.Preview.Models the generic signature of a method, as defined by 4.7.9.Preview.Models generic Java type signatures, as defined in 4.7.9.1.Preview.A classfile element that can encode itself as a stream of bytes in the encoding expected by the classfile format. -
ClassDescriptionPreview.Models the access flags for a class, method, or field.Preview.Represents a context for parsing, transforming, and generating classfiles.Preview.A transformation on streams of elements.Preview.Models a classfile.Preview.A transformation on streams of
ClassElement
PREVIEW.Preview.A builder for code attributes (method bodies).Preview.A transformation on streams ofCodeElement
PREVIEW.Preview.AClassFileElement
PREVIEW that has complex structure defined in terms of other classfile elements, such as a method, field, method body, or entire class.Preview.A transformation on streams ofFieldElement
PREVIEW.Preview.A marker for a position within the instructions of a method body.Preview.A transformation on streams ofMethodElement
PREVIEW.Preview.Describes the types that can be part of a field or method descriptor. -
ClassDescriptionPreview.Models an entry in the bootstrap method table.Preview.Supports writing portions of a classfile to a growable buffer.Preview.Immutable model for a portion of (or the entirety of) a classfile.Preview.Models a classfile.Preview.Describes the types that can be part of a field or method descriptor.Preview.A classfile element that can encode itself as a stream of bytes in the encoding expected by the classfile format.
-
ClassDescriptionPreview.Supports writing portions of a classfile to a growable buffer.Preview.Immutable model for a portion of (or the entirety of) a classfile.Preview.A marker interface for elements that can appear when traversing a
CodeModel
PREVIEW or be presented to aCodeBuilder
PREVIEW.Preview.Models an executable instruction in a method body.Preview.A marker for a position within the instructions of a method body.Preview.Describes the opcodes of the JVM instruction set, as described in 6.5.Preview.Models metadata about aCodeAttribute
PREVIEW, such as entries in the exception table, line number table, local variable table, or the mapping between instructions and labels.Preview.Models generic Java type signatures, as defined in 4.7.9.1.Preview.Describes the types that can be part of a field or method descriptor.