org.objectweb.asm.util
public class CheckClassAdapter extends ClassAdapter
| Constructor Summary | |
|---|---|
| CheckClassAdapter(ClassVisitor cv)
Constructs a new CheckClassAdapter.
| |
| Method Summary | |
|---|---|
| static void | main(String[] args)
Checks a given class. |
| static void | verify(ClassReader cr, boolean dump, PrintWriter pw)
Checks a given class
|
| void | visit(int version, int access, String name, String signature, String superName, String[] interfaces) |
| AnnotationVisitor | visitAnnotation(String desc, boolean visible) |
| void | visitAttribute(Attribute attr) |
| void | visitEnd() |
| FieldVisitor | visitField(int access, String name, String desc, String signature, Object value) |
| void | visitInnerClass(String name, String outerName, String innerName, int access) |
| MethodVisitor | visitMethod(int access, String name, String desc, String signature, String[] exceptions) |
| void | visitOuterClass(String owner, String name, String desc) |
| void | visitSource(String file, String debug) |
Parameters: cv the class visitor to which this adapter must delegate calls.
Usage: CheckClassAdapter <fully qualified class name or class file name>
Parameters: args the command line arguments.
Throws: Exception if the class cannot be found, or if an IO exception occurs.
Parameters: cr a ClassReader that contains bytecode for the analysis. dump true if bytecode should be printed out not only when errors are found. pw write where results going to be printed