Javassist (Java programming assistant) makes bytecode engineering simple. It is a class library for editing bytecode in Java; it enables Java programs to define a new class at runtime and to modify a given class file when the JVM loads it.
The most significant class of this package is CtClass.
See the description of this class first.
To know the version number of this package, type the following command:
java -jar javassist.jar
It prints the version number on the console.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | ClassPath
|
| public interface | Translator
An observer of |
| Modifier and Type | Class and Description |
|---|---|
| public class | ByteArrayClassPath
A |
| public class | CannotCompileException
Thrown when bytecode transformation has failed. |
| public class | ClassClassPath
A search-path for obtaining a class file
by |
| public class | ClassMap
A hash table associating class names with different names. |
| pack-priv class | |
| public class | ClassPool
A container of |
| pack-priv class | |
| public class | CodeConverter
Simple translator of method bodies
(also see the |
| pack-priv class | CtArray
Array types. |
| public abstract class | CtBehavior
|
| public abstract class | CtClass
An instance of |
| pack-priv class | CtClassType
Class? types. |
| public class | CtConstructor
An instance of CtConstructor represents a constructor. |
| public class | CtField
An instance of CtField represents a field. |
| public abstract class | CtMember
An instance of |
| public class | CtMethod
An instance of |
| pack-priv class | |
| public class | CtNewConstructor
A collection of static methods for creating a |
| public class | CtNewMethod
A collection of static methods for creating a |
| pack-priv class | |
| pack-priv class | |
| public class | CtPrimitiveType
An instance of |
| pack-priv class | |
| pack-priv class | |
| pack-priv class | |
| pack-priv class | |
| public class | Loader
The class loader for Javassist. |
| public class | LoaderClassPath
A class search-path representing a class loader. |
| public class | Modifier
The Modifier class provides static methods and constants to decode class and member access modifiers. |
| public class | NotFoundException
Signals that something could not be found. |
| public class | SerialVersionUID
Utility for calculating serialVersionUIDs for Serializable classes. |
| public class | URLClassPath
A class search-path specified with URL (http). |