org.osjava.jardiff
Class ClassInfoVisitor

java.lang.Object
  extended byorg.objectweb.asm.commons.EmptyVisitor
      extended byorg.osjava.jardiff.ClassInfoVisitor
All Implemented Interfaces:
org.objectweb.asm.AnnotationVisitor, org.objectweb.asm.ClassVisitor, org.objectweb.asm.FieldVisitor, org.objectweb.asm.MethodVisitor

public class ClassInfoVisitor
extends org.objectweb.asm.commons.EmptyVisitor

A reusable class which uses the ASM to build up ClassInfo about a java class file.

Author:
Antony Riley

Constructor Summary
ClassInfoVisitor()
           
 
Method Summary
 ClassInfo getClassInfo()
          The the classInfo this ClassInfoVisitor has built up about a class
 void reset()
          Reset this ClassInfoVisitor so that it can be used to visit another class.
 void visit(int version, int access, String name, String signature, String supername, String[] interfaces)
          Receive notification of information about a class from ASM.
 org.objectweb.asm.FieldVisitor visitField(int access, String name, String desc, String signature, Object value)
           
 org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
           
 
Methods inherited from class org.objectweb.asm.commons.EmptyVisitor
visit, visitAnnotation, visitAnnotation, visitAnnotationDefault, visitArray, visitAttribute, visitCode, visitEnd, visitEnum, visitFieldInsn, visitIincInsn, visitInnerClass, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitOuterClass, visitParameterAnnotation, visitSource, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassInfoVisitor

public ClassInfoVisitor()
Method Detail

reset

public void reset()
Reset this ClassInfoVisitor so that it can be used to visit another class.


getClassInfo

public ClassInfo getClassInfo()
The the classInfo this ClassInfoVisitor has built up about a class


visit

public void visit(int version,
                  int access,
                  String name,
                  String signature,
                  String supername,
                  String[] interfaces)
Receive notification of information about a class from ASM.

Parameters:
version - the class file version number.
access - the access flags for the class.
name - the internal name of the class.
signature - the signature of the class.
supername - the internal name of the super class.
interfaces - the internal names of interfaces implemented.

visitMethod

public org.objectweb.asm.MethodVisitor visitMethod(int access,
                                                   String name,
                                                   String desc,
                                                   String signature,
                                                   String[] exceptions)

visitField

public org.objectweb.asm.FieldVisitor visitField(int access,
                                                 String name,
                                                 String desc,
                                                 String signature,
                                                 Object value)


Copyright © 2005-2006 OSJava. All Rights Reserved.