Uses of Package
java.lang.classfile
Packages that use java.lang.classfile
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing
class
file attributes for the java.lang.classfile
library.Provides interfaces describing constant pool entries for the
java.lang.classfile
library.Provides interfaces describing code instructions for the
java.lang.classfile
library.-
Classes in java.lang.classfile used by java.lang.classfileClassDescriptionModels the access flags for a class, method, or field.Models an
element_value
structure, or a value of an element-value pair of an annotation, as defined in JVMS 4.7.16.1.Models an annotation value of an element-value pair.Models an array value of an element-value pair.Models a boolean value of an element-value pair.Models a byte value of an element-value pair.Models a char value of an element-value pair.Models a class value of an element-value pair.Models a constant value of an element-value pair.Models a double value of an element-value pair.Models an enum value of an element-value pair.Models a float value of an element-value pair.Models an int value of an element-value pair.Models a long value of an element-value pair.Models a short value of an element-value pair.Models a string value of an element-value pair.Models an attribute (JVMS 4.7) in theclass
file format.AClassFileElement
describing aclass
file structure that has attributes, such as aclass
file, a field, a method, aCode
attribute, or a record component.Bidirectional mapper between theclass
file representation of an attribute and its API model.Indicates the data dependency of theclass
file representation of an attribute.Advancedclass
file writing support forAttributeMapper
s.A builder for classfiles.A marker interface for elements that can appear when traversing aClassModel
or be presented to aClassBuilder
.Represents a context for parsing, transforming, and generating classfiles.Option describing attribute mappers for custom attributes.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.Option describing the class hierarchy resolver to use when generating stack maps.Option describing whether to preserve the original constant pool when transforming aclass
file.Option describing whether to patch out unreachable code.Option describing whether to filter unresolved labels.Option describing whether to process or discard debug elements.Option describing whether to process or discard line numbers.An option that affects the parsing and writing of classfiles.Option describing whether to automatically rewrite short jumps to long when necessary.Option describing whether to generate stackmaps.A builder for a classfile or portion of a classfile.Immutable model for a portion of (or the entirety of) a classfile.A transformation on streams of elements.Models the classfile version information for a class.Provides class hierarchy information for generating correct stack maps during code building.Information about a resolved class.Models a classfile.Advancedclass
file reading support forAttributeMapper
s.Models the generic signature of a class or interface, as defined by JVMS 4.7.9.1.A transformation on streams ofClassElement
.A builder for code attributes (method bodies).A builder for blocks of code.A builder to add catch blocks.A marker interface for elements that can appear when traversing aCodeModel
or be presented to aCodeBuilder
.Models the body of a method (theCode
attribute).A transformation on streams ofCodeElement
.AClassFileElement
that has complex structure defined in terms of other classfile elements, such as a method, field, method body, or entire class.Models a user-defined attribute in aclass
file.A builder for fields.A marker interface for elements that can appear when traversing aFieldModel
or be presented to aFieldBuilder
.Models a field.A transformation on streams ofFieldElement
.Models the interfaces of a class.A marker for a position within the instructions of a method body.A builder for methods.A marker interface for elements that can appear when traversing aMethodModel
or be presented to aMethodBuilder
.Models a method.Models the generic signature of a method or constructor, as defined by JVMS 4.7.9.1.A transformation on streams ofMethodElement
.Describes the opcodes of the JVM instruction set, as described in JVMS 6.5.Kinds of opcodes.Models generic Java type signatures, as defined in JVMS 4.7.9.1.Models the signature of an array type.Models the signature of a primitive type (JLS 4.2) or void.Models the signature of a possibly-parameterized class or interface type.Models the signature of a reference type, which may be a class, interface, type variable, or array type.Marker interface for a signature for a throwable type.Models a type argument, an argument to a type parameter.Models a type argument with an explicit bound type.Models a type argument's wildcard indicator.Models an unbounded wildcard type argument*
, or?
in Java programs.Models a signature for a type parameter of a generic class, interface, method, or constructor, which introduces a type variable.Models the signature of a type variable.Models the superclass of a class.Models atype_annotation
structure (JVMS 4.7.20).Indicates that an annotation appears on the i'th type in an exception parameter declaration.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.Indicates that an annotation appears on the type in a formal parameter declaration of a method, constructor, or lambda expression.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.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.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.Indicates that an annotation appears on a type in the extends or implements clause of a class or interface declaration.Specifies which type in a declaration or expression is being annotated.The kind of target on which the annotation appears, as defined in JVMS 4.7.20.1.Indicates that an annotation appears on the i'th type in the throws clause of a method or constructor declaration.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.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.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.JVMS: Type_path structure identifies which part of the type is annotated, as defined in JVMS 4.7.20.2Type path kind, as defined in JVMS 4.7.20.2Describes the data types Java Virtual Machine operates on. -
Classes in java.lang.classfile used by java.lang.classfile.attributeClassDescriptionModels an
element_value
structure, or a value of an element-value pair of an annotation, as defined in JVMS 4.7.16.1.Models an attribute (JVMS 4.7) in theclass
file format.AClassFileElement
describing aclass
file structure that has attributes, such as aclass
file, a field, a method, aCode
attribute, or a record component.Models an entry in the bootstrap method table.A marker interface for elements that can appear when traversing aClassModel
or be presented to aClassBuilder
.Immutable model for a portion of (or the entirety of) a classfile.Models the generic signature of a class or interface, as defined by JVMS 4.7.9.1.A marker interface for elements that can appear when traversing aCodeModel
or be presented to aCodeBuilder
.Models the body of a method (theCode
attribute).AClassFileElement
that has complex structure defined in terms of other classfile elements, such as a method, field, method body, or entire class.A marker interface for elements that can appear when traversing aFieldModel
or be presented to aFieldBuilder
.A marker for a position within the instructions of a method body.A marker interface for elements that can appear when traversing aMethodModel
or be presented to aMethodBuilder
.Models the generic signature of a method or constructor, as defined by JVMS 4.7.9.1.Models generic Java type signatures, as defined in JVMS 4.7.9.1.Models atype_annotation
structure (JVMS 4.7.20). -
Classes in java.lang.classfile used by java.lang.classfile.constantpoolClassDescriptionModels an entry in the bootstrap method table.Models a classfile.Describes the data types Java Virtual Machine operates on.
-
Classes in java.lang.classfile used by java.lang.classfile.instructionClassDescriptionImmutable model for a portion of (or the entirety of) a classfile.A marker interface for elements that can appear when traversing a
CodeModel
or be presented to aCodeBuilder
.Models an executable instruction in thecode
array of theCode
attribute of a method.A marker for a position within the instructions of a method body.Describes the opcodes of the JVM instruction set, as described in JVMS 6.5.Models metadata about aCodeAttribute
, such as entries in the exception table, line number table, local variable table, or the mapping between instructions and labels.Models generic Java type signatures, as defined in JVMS 4.7.9.1.Describes the data types Java Virtual Machine operates on.