org.objectweb.asm.commons
Class StaticInitMerger
java.lang.Object
org.objectweb.asm.ClassAdapter
org.objectweb.asm.commons.StaticInitMerger
- All Implemented Interfaces:
- ClassVisitor
- public class StaticInitMerger
- extends ClassAdapter
A ClassAdapter that merges clinit methods into a single one.
- Author:
- Eric Bruneton
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticInitMerger
public StaticInitMerger(String prefix,
ClassVisitor cv)
visit
public void visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
- Description copied from interface:
ClassVisitor
- Visits the header of the class.
- Specified by:
visit in interface ClassVisitor- Overrides:
visit in class ClassAdapter
visitMethod
public MethodVisitor visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
- Description copied from interface:
ClassVisitor
- Visits a method of the class. This method must return a new
MethodVisitor instance (or null) each time it
is called, i.e., it should not return a previously returned visitor.
- Specified by:
visitMethod in interface ClassVisitor- Overrides:
visitMethod in class ClassAdapter
visitEnd
public void visitEnd()
- Description copied from interface:
ClassVisitor
- Visits the end of the class. This method, which is the last one to be
called, is used to inform the visitor that all the fields and methods of
the class have been visited.
- Specified by:
visitEnd in interface ClassVisitor- Overrides:
visitEnd in class ClassAdapter