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 aclass
file.Marker interface for a member element of aClassModel
.Provides ability to parse, transform, and generateclass
files.The option describing user-defined attributes for parsingclass
files.The option describing whether to retain or discard attributes that cannot verify their correctness after a transformation.The option describing the class hierarchy resolver to use when generating stack maps or verifying classes.Option describing whether to extend from the original constant pool when transforming aclass
file.The option describing whether to patch out unreachable code for stack map generation.The option describing whether to filter unbound labels and drop their enclosing structures if possible.The option describing whether to process or discard debugPseudoInstruction
s in the traversal of aCodeModel
or aCodeBuilder
.The option describing whether to process or discardLineNumber
s in the traversal of aCodeModel
or aCodeBuilder
.An option that affects the parsing or writing ofclass
files.The option describing whether to automatically rewrite short jumps to equivalent instructions when necessary.The option describing whether to generate stack maps.A builder for aCompoundElement
, which accepts the member elements to be integrated into the built structure.Marker interface for structures with special capabilities in theclass
file format.A transformation on aCompoundElement
by processing its individual member elements and sending the results to aClassFileBuilder
, throughClassFileBuilder.transform(java.lang.classfile.CompoundElement<E>, java.lang.classfile.ClassFileTransform<?, E, B>)
.Models the minor and major version numbers of aclass
file (JVMS 4.1).Provides class hierarchy information for stack maps generation and verification.Information about a resolved class.Models aclass
file.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 forCode
attributes (method bodies).A builder for blocks of code.A builder to add catch blocks.Marker interface for a member element of aCodeModel
.Models the body of a method (theCode
attribute).A transformation on streams ofCodeElement
.Aclass
file structure that can be viewed as a composition of its member structures.Models a user-defined attribute in aclass
file.A builder for fields.Marker interface for a member element of aFieldModel
.Models a field.A transformation on streams ofFieldElement
.Models the interfaces (JVMS 4.1) of a class.A marker for a position within the instructions of a method body.A builder for methods.Marker interface for a member element of aMethodModel
.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 (JVMS 4.1) 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.Marker interface for a member element of aClassModel
.Marker interface for structures with special capabilities in theclass
file format.Models the generic signature of a class or interface, as defined by JVMS 4.7.9.1.Marker interface for a member element of aCodeModel
.Models the body of a method (theCode
attribute).Aclass
file structure that can be viewed as a composition of its member structures.Marker interface for a member element of aFieldModel
.A marker for a position within the instructions of a method body.Marker interface for a member element of aMethodModel
.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
class
file.Describes the data types Java Virtual Machine operates on. -
Classes in java.lang.classfile used by java.lang.classfile.instructionClassDescriptionMarker interface for structures with special capabilities in the
class
file format.Marker interface for a member element of aCodeModel
.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 generic Java type signatures, as defined in JVMS 4.7.9.1.Describes the data types Java Virtual Machine operates on.