Skip to main content

Module bytecode

Module bytecode 

Source
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 (BootstrapMethods attribute)
  • 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 .class bytes into ClassStub records.
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 BootstrapMethods attribute.
modules
Java 9+ module attribute parser (JVMS 4.7.25).

Functions§

scan_jar
Scan a JAR file (ZIP archive) and parse all .class entries into ClassStub records.