Java class file parsing, manipulation, and decompilation library.
This library is mostly experimental for my own personal learning.
It can load and save class files and lookup class file dependencies, but contains few helpers for making changes to class files or validating those changes.
The class file format is fully implemented in twg2.jbcm.classFormat and sub packages, including all constant pool entry types and class file attributes.
See the twg2.jbcm.main.UsageCliMain
class for a simple command line interface you can use to load and print class file info.
Reference: Java Virtual Machine Spec (Java 9)
Packages:
Contains implementation of the class file format
with related attributes (twg2.jbcm.classFormat.attributes
) and constant pool types (twg2.jbcm.classFormat.constantPool
).
Interfaces and utilities for searching and modifying class files.
Utilities and the Opcodes
enum containing detailed, programatic information about the Java instruction set opcodes.
Also see extract-opcodes.js file for how the enum literals in Opcodes
are generated.
Classes used by the example and test packages.
Runtime class loading.
Example console apps.