Package | Description |
---|---|
org.objectweb.asm |
Provides a small and fast bytecode manipulation framework.
|
org.objectweb.asm.commons |
Provides some useful class and method adapters.
|
org.objectweb.asm.tree |
Provides an ASM visitor that constructs a tree representation of the
classes it visits.
|
org.objectweb.asm.util |
Provides ASM visitors that can be useful for programming and
debugging purposes.
|
Modifier and Type | Class and Description |
---|---|
class |
ClassWriter
A
ClassVisitor that generates a corresponding ClassFile structure, as defined in the Java
Virtual Machine Specification (JVMS). |
Modifier and Type | Field and Description |
---|---|
protected ClassVisitor |
ClassVisitor.cv
The class visitor to which this visitor must delegate method calls.
|
Modifier and Type | Method and Description |
---|---|
void |
ClassReader.accept(ClassVisitor classVisitor,
Attribute[] attributePrototypes,
int parsingOptions)
Makes the given visitor visit the JVMS ClassFile structure passed to the constructor of this
ClassReader . |
void |
ClassReader.accept(ClassVisitor classVisitor,
int parsingOptions)
Makes the given visitor visit the JVMS ClassFile structure passed to the constructor of this
ClassReader . |
private int |
ClassReader.readField(ClassVisitor classVisitor,
Context context,
int fieldInfoOffset)
Reads a JVMS field_info structure and makes the given visitor visit it.
|
private int |
ClassReader.readMethod(ClassVisitor classVisitor,
Context context,
int methodInfoOffset)
Reads a JVMS method_info structure and makes the given visitor visit it.
|
private void |
ClassReader.readModuleAttributes(ClassVisitor classVisitor,
Context context,
int moduleOffset,
int modulePackagesOffset,
java.lang.String moduleMainClass)
Reads the Module, ModulePackages and ModuleMainClass attributes and visit them.
|
Constructor and Description |
---|
ClassVisitor(int api,
ClassVisitor classVisitor)
Constructs a new
ClassVisitor . |
Modifier and Type | Class and Description |
---|---|
class |
ClassRemapper
A
ClassVisitor that remaps types with a Remapper . |
class |
RemappingClassAdapter
Deprecated.
use
ClassRemapper instead. |
class |
SerialVersionUIDAdder
A
ClassVisitor that adds a serial version unique identifier to a class if missing. |
class |
StaticInitMerger
A
ClassVisitor that merges <clinit> methods into a single one. |
Constructor and Description |
---|
ClassRemapper(ClassVisitor classVisitor,
Remapper remapper)
Constructs a new
ClassRemapper . |
ClassRemapper(int api,
ClassVisitor classVisitor,
Remapper remapper)
Constructs a new
ClassRemapper . |
GeneratorAdapter(int access,
Method method,
java.lang.String signature,
Type[] exceptions,
ClassVisitor classVisitor)
Constructs a new
GeneratorAdapter . |
RemappingClassAdapter(ClassVisitor classVisitor,
Remapper remapper)
Deprecated.
|
RemappingClassAdapter(int api,
ClassVisitor classVisitor,
Remapper remapper)
Deprecated.
|
SerialVersionUIDAdder(ClassVisitor classVisitor)
Constructs a new
SerialVersionUIDAdder . |
SerialVersionUIDAdder(int api,
ClassVisitor classVisitor)
Constructs a new
SerialVersionUIDAdder . |
StaticInitMerger(int api,
java.lang.String prefix,
ClassVisitor classVisitor)
Constructs a new
StaticInitMerger . |
StaticInitMerger(java.lang.String prefix,
ClassVisitor classVisitor)
Constructs a new
StaticInitMerger . |
Modifier and Type | Class and Description |
---|---|
class |
ClassNode
A node that represents a class.
|
Modifier and Type | Method and Description |
---|---|
void |
ModuleNode.accept(ClassVisitor classVisitor)
Makes the given class visitor visit this module.
|
void |
MethodNode.accept(ClassVisitor classVisitor)
Makes the given class visitor visit this method.
|
void |
InnerClassNode.accept(ClassVisitor classVisitor)
Makes the given class visitor visit this inner class.
|
void |
FieldNode.accept(ClassVisitor classVisitor)
Makes the given class visitor visit this field.
|
void |
ClassNode.accept(ClassVisitor classVisitor)
Makes the given class visitor visit this class.
|
Modifier and Type | Class and Description |
---|---|
class |
CheckClassAdapter
A
ClassVisitor that checks that its methods are properly used. |
class |
TraceClassVisitor
A
ClassVisitor that prints the classes it visits with a Printer . |
Constructor and Description |
---|
CheckClassAdapter(ClassVisitor classVisitor)
Constructs a new
CheckClassAdapter . |
CheckClassAdapter(ClassVisitor classVisitor,
boolean checkDataFlow)
Constructs a new
CheckClassAdapter . |
CheckClassAdapter(int api,
ClassVisitor classVisitor,
boolean checkDataFlow)
Constructs a new
CheckClassAdapter . |
TraceClassVisitor(ClassVisitor classVisitor,
Printer printer,
java.io.PrintWriter printWriter)
Constructs a new
TraceClassVisitor . |
TraceClassVisitor(ClassVisitor classVisitor,
java.io.PrintWriter printWriter)
Constructs a new
TraceClassVisitor . |