All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.plumelib.bcelutil.package-info Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
/**
 * Utility methods for BCEL, the bytecode engineering library.
 *
 * 

The Byte Code Engineering Library (Apache Commons BCEL) enables users to analyze, create, and * manipulate (binary) Java class files (those ending with .class). Classes are represented by * objects which contain all the symbolic information of the given class: methods, fields, and byte * code instructions, in particular. Such objects can be read from an existing file, be transformed * by a program (e.g., a class loader at run time) and written to a file again. * *

If one wishes to inspect a Java class file, a rough program template would be as follows: * *

 *   import org.apache.bcel.classfile.*;
 *
 *   try {
 *     // Parse the bytes of the classfile, die on any errors
 *     ClassParser parser = new ClassParser("path to class file of interest");
 *     JavaClass jc = parser.parse();
 *   } catch (Exception e) {
 *     throw new RuntimeException("Unexpected error", e);
 *   }
 * 
* * At this point one would use the methods of {@link org.apache.bcel.classfile.JavaClass}, the other * members of the {@link org.apache.bcel.classfile} package and {@link * org.plumelib.bcelutil.BcelUtil} to explore the class file of interest. * *

* * @see org.plumelib.bcelutil.InstructionListUtils InstructionListUtils for notes on modifing a Java * class file * @see Commons BCEL web site * for details about the BCEL library */ package org.plumelib.bcelutil;





© 2015 - 2024 Weber Informatics LLC | Privacy Policy