Top Description Interfaces Classes
[default module]

Package javassist


The Javassist Core API.

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.

Interface Summary

Modifier and TypeInterface and Description
public interface
ClassPath

ClassPath is an interface implemented by objects representing a class search path.

public interface
Translator

An observer of Loader.

Class Summary

Modifier and TypeClass and Description
public class
ByteArrayClassPath

A ByteArrayClassPath contains bytes that is served as a class file to a ClassPool.

public class
CannotCompileException

Thrown when bytecode transformation has failed.

public class
ClassClassPath

A search-path for obtaining a class file by getResourceAsStream() in java.lang.Class.

public class
ClassMap

A hash table associating class names with different names.

pack-priv class
public class
ClassPool

A container of CtClass objects.

pack-priv class
public class
CodeConverter

Simple translator of method bodies (also see the javassist.expr package).

pack-priv class
CtArray

Array types.

public abstract class
CtBehavior

CtBehavior represents a method, a constructor, or a static constructor (class initializer).

public abstract class
CtClass

An instance of CtClass represents a class.

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 CtMember represents a field, a constructor, or a method.

public class
CtMethod

An instance of CtMethod represents a method.

pack-priv class
public class
CtNewConstructor

A collection of static methods for creating a CtConstructor.

public class
CtNewMethod

A collection of static methods for creating a CtMethod.

pack-priv class
pack-priv class
public class
CtPrimitiveType

An instance of CtPrimitiveType represents a primitive type.

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).