public class StaticInitMerger
extends org.objectweb.asm.ClassVisitor
ClassVisitor that merges <clinit> methods into a single one. All the existing
<clinit> methods are renamed, and a new one is created, which calls all the renamed
methods.| Modifier | Constructor and Description |
|---|---|
protected |
StaticInitMerger(int api,
String prefix,
org.objectweb.asm.ClassVisitor classVisitor)
Constructs a new
StaticInitMerger. |
|
StaticInitMerger(String prefix,
org.objectweb.asm.ClassVisitor classVisitor)
Constructs a new
StaticInitMerger. |
| Modifier and Type | Method and Description |
|---|---|
void |
visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces) |
void |
visitEnd() |
org.objectweb.asm.MethodVisitor |
visitMethod(int access,
String name,
String descriptor,
String signature,
String[] exceptions) |
public StaticInitMerger(String prefix, org.objectweb.asm.ClassVisitor classVisitor)
StaticInitMerger. Subclasses must not use this constructor.
Instead, they must use the StaticInitMerger(int, String, ClassVisitor) version.prefix - the prefix to use to rename the existing <clinit> methods.classVisitor - the class visitor to which this visitor must delegate method calls. May be
null.protected StaticInitMerger(int api,
String prefix,
org.objectweb.asm.ClassVisitor classVisitor)
StaticInitMerger.api - the ASM API version implemented by this visitor. Must be one of the ASMx values in Opcodes.prefix - the prefix to use to rename the existing <clinit> methods.classVisitor - the class visitor to which this visitor must delegate method calls. May be
null.public void visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
visit in class org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.MethodVisitor visitMethod(int access,
String name,
String descriptor,
String signature,
String[] exceptions)
visitMethod in class org.objectweb.asm.ClassVisitorpublic void visitEnd()
visitEnd in class org.objectweb.asm.ClassVisitorCopyright © 2024. All rights reserved.