Skip to content
This repository was archived by the owner on Oct 23, 2019. It is now read-only.

Latest commit

 

History

History
23 lines (14 loc) · 612 Bytes

File metadata and controls

23 lines (14 loc) · 612 Bytes

Hug

Hug is a very small and compact library which can be used for bytecode manipulation.

Hug is very abstract and very, very low level. A basic set of utility classes is delivered and can be used to do specific operations easier. (renaming a method, remapping a class etc)

Basic usage

Hug is very easy to use. here's a small code example:

ClassReader hug = new ClassReader("java.lang.Object"); // Can also be raw bytes or an inputstream

for (Member field : hug.getFields()) {

    System.out.println(field.getDescriptor() + " -> " + field.getName());

}