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.
-
Interface Summary Interface Description ClassFileWriter.AttributeWriter This writes attributes.Mnemonic JVM Instruction Names.Opcode JVM Instruction Set. -
Class Summary Class Description AccessFlag A support class providing static methods and constants for access modifiers such as public, private, ...AnnotationDefaultAttribute A class representingAnnotationDefault_attribute.AnnotationsAttribute A class representingRuntimeVisibleAnnotations_attributeandRuntimeInvisibleAnnotations_attribute.AttributeInfo attribute_infostructure.BootstrapMethodsAttribute BootstrapMethodsAttribute.BootstrapMethod An element ofbootstrap_methods.ByteArray A collection of static methods for reading and writing a byte array.Bytecode A utility class for producing a bytecode sequence.ClassFile ClassFilerepresents a Java.classfile, 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.ConstPoolWriter Constant Pool.ClassFileWriter.FieldWriter Field.ClassFileWriter.MethodWriter Method.CodeAttribute Code_attribute.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.EnclosingMethodAttribute EnclosingMethod_attribute.ExceptionsAttribute Exceptions_attribute.ExceptionTable exception_table[]ofCode_attribute.FieldInfo field_infostructure.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 oftoNearPc().LocalVariableAttribute LocalVariableTable_attribute.LocalVariableTypeAttribute LocalVariableTypeTable_attribute.MethodInfo method_infostructure.MethodParametersAttribute MethodParameters_attribute.NestHostAttribute NestHost_attribute.NestMembersAttribute NestMembers_attribute.ParameterAnnotationsAttribute A class representingRuntimeVisibleAnnotations_attributeandRuntimeInvisibleAnnotations_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 Anotherstack_mapattribute defined in CLDC 1.1 for J2ME.StackMap.Walker A code walker for a StackMap attribute.StackMap.Writer Internal use only.StackMapTable stack_mapattribute.StackMapTable.Walker A code walker for a StackMapTable attribute.StackMapTable.Writer A writer of stack map tables.SyntheticAttribute Synthetic_attribute.TypeAnnotationsAttribute A class representingRuntimeVisibleTypeAnnotationsattribute andRuntimeInvisibleTypeAnnotationsattribute. -
Exception Summary Exception Description BadBytecode Signals that a bad bytecode sequence has been found.CodeAttribute.RuntimeCopyException An exception that may be thrown bycopy()inCodeAttribute.DuplicateMemberException An exception thrown when adding a duplicate member is requested.StackMapTable.RuntimeCopyException An exception that may be thrown bycopy()inStackMapTable.