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.util |
Provides ASM visitors that can be useful for programming and
debugging purposes.
|
Modifier and Type | Field and Description |
---|---|
private ClassReader |
SymbolTable.sourceClassReader
The ClassReader from which this SymbolTable was constructed, or null if it was
constructed from scratch.
|
Modifier and Type | Method and Description |
---|---|
(package private) ClassReader |
SymbolTable.getSource()
Returns the ClassReader from which this SymbolTable was constructed.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
MethodWriter.canCopyMethodAttributes(ClassReader source,
int methodInfoOffset,
int methodInfoLength,
boolean hasSyntheticAttribute,
boolean hasDeprecatedAttribute,
int descriptorIndex,
int signatureIndex,
int exceptionsOffset)
Returns whether the attributes of this method can be copied from the attributes of the given
method (assuming there is no method visitor between the given ClassReader and this
MethodWriter).
|
private void |
SymbolTable.copyBootstrapMethods(ClassReader classReader,
char[] charBuffer)
Read the BootstrapMethods 'bootstrap_methods' array binary content and add them as entries of
the SymbolTable.
|
protected Attribute |
Attribute.read(ClassReader classReader,
int offset,
int length,
char[] charBuffer,
int codeAttributeOffset,
Label[] labels)
Reads a
Attribute.type attribute. |
Constructor and Description |
---|
ClassWriter(ClassReader classReader,
int flags)
Constructs a new
ClassWriter object and enables optimizations for "mostly add" bytecode
transformations. |
SymbolTable(ClassWriter classWriter,
ClassReader classReader)
Constructs a new SymbolTable for the given ClassWriter, initialized with the constant pool and
bootstrap methods of the given ClassReader.
|
Modifier and Type | Method and Description |
---|---|
protected Attribute |
ModuleResolutionAttribute.read(ClassReader classReader,
int offset,
int length,
char[] charBuffer,
int codeOffset,
Label[] labels) |
protected Attribute |
ModuleTargetAttribute.read(ClassReader classReader,
int offset,
int length,
char[] charBuffer,
int codeOffset,
Label[] labels) |
protected Attribute |
ModuleHashesAttribute.read(ClassReader classReader,
int offset,
int length,
char[] charBuffer,
int codeAttributeOffset,
Label[] labels) |
Modifier and Type | Method and Description |
---|---|
static void |
CheckClassAdapter.verify(ClassReader classReader,
boolean printResults,
java.io.PrintWriter printWriter)
Checks the given class.
|
static void |
CheckClassAdapter.verify(ClassReader classReader,
java.lang.ClassLoader loader,
boolean printResults,
java.io.PrintWriter printWriter)
Checks the given class.
|