Expand description
Stub data model types for parsed JVM bytecode.
This module defines the intermediate representation produced by bytecode
parsing. Each .class file is parsed into a ClassStub containing
methods, fields, annotations, generic signatures, and JVM-specific metadata
(modules, records, lambdas, Kotlin/Scala metadata).
All types are pure data — no parsing logic lives here. They are designed for
efficient binary serialization via postcard and are Send + Sync by
construction (all fields are owned).
Structs§
- Access
Flags - Bitflag-style JVM access modifiers (JVMS Table 4.1-A/B).
- Annotation
Element - A single element (key-value pair) within an annotation.
- Annotation
Stub - A single annotation instance (runtime-visible or runtime-invisible).
- Class
Stub - Parsed representation of a single
.classfile. - Field
Stub - Parsed field declaration from a
.classfile. - Generic
Class Signature - Class-level generic signature.
- Generic
Method Signature - Method-level generic signature.
- Inner
Class Entry - An entry from the
InnerClassesattribute (JVMS 4.7.6). - Kotlin
Metadata Stub - Raw Kotlin metadata extracted from the
@kotlin.Metadataannotation. - Lambda
Target Stub - A lambda or method-reference target extracted from the
BootstrapMethodsattribute (specificallyLambdaMetafactoryentries). - Method
Stub - Parsed method declaration from a
.classfile. - Module
Exports - An
exportsdirective in a module descriptor. - Module
Opens - An
opensdirective in a module descriptor. - Module
Provides - A
providesdirective in a module descriptor. - Module
Requires - A
requiresdirective in a module descriptor. - Module
Stub - Module descriptor parsed from
module-info.class(JVMS 4.7.25). - Ordered
Float - Wrapper around
f32that providesPartialEqwith total ordering (treating NaN as equal to NaN) for use inConstantValue. - Record
Component - A record component (parameter of a
recordclass). - Scala
Signature Stub - Raw Scala signature extracted from the
@ScalaSignatureannotation. - Type
Parameter Stub - A formal type parameter declaration (e.g.,
T extends Comparable<T>).
Enums§
- Annotation
Element Value - The value of an annotation element (JVMS 4.7.16.1).
- Base
Type - JVM primitive types and
void. - Class
Kind - Discriminates the kind of a class-file entity.
- Constant
Value - Constant value from the
ConstantValueattribute (JVMS 4.7.2) or annotation element values. - Reference
Kind - Method handle reference kinds (JVMS 5.4.3.5, Table 5.4.3.5-A).
- Type
Argument - A type argument in a parameterized type (JVMS 4.7.9.1).
- Type
Signature - JVM type signature with full generic information.
- Wildcard
Bound - Wildcard bound direction.