Expand description
JVM bytecode parsing.
Parses .class files into ClassStub records, extracting:
- Class/method/field declarations with visibility and modifiers
- Generic type signatures (JVMS 4.7.9)
- Annotations (runtime visible and invisible)
- Lambda targets (
BootstrapMethodsattribute) - Java 9+ module declarations
§JAR scanning
The scan_jar function reads a JAR (ZIP archive), parses all .class
entries into enriched ClassStub records, and returns them. It applies
security limits to prevent JAR-bomb denial-of-service attacks.
Re-exports§
pub use classfile::parse_class;
Modules§
- annotations
- Annotation attribute parser for JVM bytecode.
- classfile
- Class file parser: converts
.classbytes intoClassStubrecords. - constants
- JVM constant pool helper utilities.
- generics
- Recursive descent parser for JVM generic signatures (JVMS 4.7.9.1).
- lambda
- Lambda/method-reference target extraction from the
BootstrapMethodsattribute. - modules
- Java 9+ module attribute parser (JVMS 4.7.25).