# Package javassist.bytecode

package javassist.bytecode
Bytecode-level API.

This package provides low-level API for editing a raw class file. It allows the users to read and modify a constant pool entry, a single bytecode instruction, and so on.

The users of this package must know the specifications of class file and Java bytecode. For more details, read this book:

- Tim Lindholm and Frank Yellin, "The Java Virtual Machine Specification 2nd Ed.", Addison-Wesley, 1999.

Related Packages
Package
Description
javassist
The Javassist Core API.
javassist.bytecode.analysis
Bytecode Analysis API.
javassist.bytecode.annotation
Bytecode-level Annotations API.
javassist.expr
This package contains the classes for modifying a method body.
javassist.runtime
Runtime support classes required by modified bytecode.
javassist.tools
Covenient tools.
javassist.util
Utility classes.
Class
Description
AccessFlag
A support class providing static methods and constants for access modifiers such as public, private, ...
AnnotationDefaultAttribute
A class representing `AnnotationDefault_attribute`.
AnnotationsAttribute
A class representing `RuntimeVisibleAnnotations_attribute` and `RuntimeInvisibleAnnotations_attribute`.
AttributeInfo
`attribute_info` structure.
BadBytecode
Signals that a bad bytecode sequence has been found.
BootstrapMethodsAttribute
BootstrapMethodsAttribute.BootstrapMethod
An element of `bootstrap_methods`.
ByteArray
A collection of static methods for reading and writing a byte array.
Bytecode
A utility class for producing a bytecode sequence.
ClassFile
`ClassFile` represents a Java `.class` file, which consists of a constant pool, methods, fields, and attributes.
ClassFilePrinter
A utility class for priting the contents of a class file.
ClassFileWriter
A quick class-file writer.
ClassFileWriter.AttributeWriter
This writes attributes.
ClassFileWriter.ConstPoolWriter
Constant Pool.
ClassFileWriter.FieldWriter
Field.
ClassFileWriter.MethodWriter
Method.
CodeAttribute
`Code_attribute`.
CodeAttribute.RuntimeCopyException
An exception that may be thrown by `copy()` in `CodeAttribute`.
CodeIterator
An iterator for editing a code attribute.
CodeIterator.Gap
An inserted gap.
ConstantAttribute
`ConstantValue_attribute`.
ConstPool
Constant pool table.
DeprecatedAttribute
`Deprecated_attribute`.
Descriptor
A support class for dealing with descriptors.
Descriptor.Iterator
An Iterator over a descriptor.
DuplicateMemberException
An exception thrown when adding a duplicate member is requested.
EnclosingMethodAttribute
`EnclosingMethod_attribute`.
ExceptionsAttribute
`Exceptions_attribute`.
ExceptionTable
`exception_table[]` of `Code_attribute`.
FieldInfo
`field_info` structure.
InnerClassesAttribute
`InnerClasses_attribute`.
InstructionPrinter
Simple utility class for printing the bytecode instructions of a method.
LineNumberAttribute
`LineNumberTable_attribute`.
LineNumberAttribute.Pc
Used as a return type of `toNearPc()`.
LocalVariableAttribute
`LocalVariableTable_attribute`.
LocalVariableTypeAttribute
`LocalVariableTypeTable_attribute`.
MethodInfo
`method_info` structure.
MethodParametersAttribute
`MethodParameters_attribute`.
Mnemonic
JVM Instruction Names.
NestHostAttribute
`NestHost_attribute`.
NestMembersAttribute
`NestMembers_attribute`.
Opcode
JVM Instruction Set.
ParameterAnnotationsAttribute
A class representing `RuntimeVisibleAnnotations_attribute` and `RuntimeInvisibleAnnotations_attribute`.
SignatureAttribute
`Signature_attribute`.
SignatureAttribute.ArrayType
Array types.
SignatureAttribute.BaseType
Primitive types.
SignatureAttribute.ClassSignature
Class signature.
SignatureAttribute.ClassType
Class types.
SignatureAttribute.MethodSignature
Method type signature.
SignatureAttribute.NestedClassType
Nested class types.
SignatureAttribute.ObjectType
Class types, array types, and type variables.
SignatureAttribute.Type
Primitive types and object types.
SignatureAttribute.TypeArgument
Type argument.
SignatureAttribute.TypeParameter
Formal type parameters.
SignatureAttribute.TypeVariable
Type variables.
SourceFileAttribute
`SourceFile_attribute`.
StackMap
Another `stack_map` attribute defined in CLDC 1.1 for J2ME.
StackMap.Walker
A code walker for a StackMap attribute.
StackMap.Writer
Internal use only.
StackMapTable
`stack_map` attribute.
StackMapTable.RuntimeCopyException
An exception that may be thrown by `copy()` in `StackMapTable`.
StackMapTable.Walker
A code walker for a StackMapTable attribute.
StackMapTable.Writer
A writer of stack map tables.
SyntheticAttribute
`Synthetic_attribute`.
TypeAnnotationsAttribute
A class representing `RuntimeVisibleTypeAnnotations` attribute and `RuntimeInvisibleTypeAnnotations` attribute.