Knopflerfish OSGi 5.2.0

org.knopflerfish.ant.taskdefs.bundle
Class ClassAnalyserASM

java.lang.Object
  extended by org.knopflerfish.ant.taskdefs.bundle.ClassAnalyserASM
All Implemented Interfaces:
org.objectweb.asm.ClassVisitor

public class ClassAnalyserASM
extends java.lang.Object
implements org.objectweb.asm.ClassVisitor

Visitor implementation that populates a BundlePackagesInfo object with data about the given class.


Constructor Summary
ClassAnalyserASM(BundlePackagesInfo bpInfo, org.apache.tools.ant.Task task)
           
 
Method Summary
protected  void addReferencedType(org.objectweb.asm.Type type)
           
 void analyseClass(java.io.File clsFile)
           
 void analyseClass(java.io.InputStream clsIn, java.lang.String fileName)
           
 void visit(int version, int access, java.lang.String name, java.lang.String signature, java.lang.String superName, java.lang.String[] interfaces)
           
 org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String desc, boolean visible)
           
 void visitAttribute(org.objectweb.asm.Attribute attr)
           
 void visitEnd()
           
 org.objectweb.asm.FieldVisitor visitField(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.Object value)
           
 void visitInnerClass(java.lang.String name, java.lang.String outerName, java.lang.String innerName, int access)
           
 org.objectweb.asm.MethodVisitor visitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)
           
 void visitOuterClass(java.lang.String owner, java.lang.String name, java.lang.String desc)
           
 void visitSource(java.lang.String source, java.lang.String debug)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassAnalyserASM

public ClassAnalyserASM(BundlePackagesInfo bpInfo,
                        org.apache.tools.ant.Task task)
Method Detail

analyseClass

public void analyseClass(java.io.File clsFile)

analyseClass

public void analyseClass(java.io.InputStream clsIn,
                         java.lang.String fileName)

addReferencedType

protected void addReferencedType(org.objectweb.asm.Type type)

visit

public void visit(int version,
                  int access,
                  java.lang.String name,
                  java.lang.String signature,
                  java.lang.String superName,
                  java.lang.String[] interfaces)
Specified by:
visit in interface org.objectweb.asm.ClassVisitor

visitSource

public void visitSource(java.lang.String source,
                        java.lang.String debug)
Specified by:
visitSource in interface org.objectweb.asm.ClassVisitor

visitOuterClass

public void visitOuterClass(java.lang.String owner,
                            java.lang.String name,
                            java.lang.String desc)
Specified by:
visitOuterClass in interface org.objectweb.asm.ClassVisitor

visitAnnotation

public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String desc,
                                                           boolean visible)
Specified by:
visitAnnotation in interface org.objectweb.asm.ClassVisitor

visitAttribute

public void visitAttribute(org.objectweb.asm.Attribute attr)
Specified by:
visitAttribute in interface org.objectweb.asm.ClassVisitor

visitInnerClass

public void visitInnerClass(java.lang.String name,
                            java.lang.String outerName,
                            java.lang.String innerName,
                            int access)
Specified by:
visitInnerClass in interface org.objectweb.asm.ClassVisitor

visitField

public org.objectweb.asm.FieldVisitor visitField(int access,
                                                 java.lang.String name,
                                                 java.lang.String desc,
                                                 java.lang.String signature,
                                                 java.lang.Object value)
Specified by:
visitField in interface org.objectweb.asm.ClassVisitor

visitMethod

public org.objectweb.asm.MethodVisitor visitMethod(int access,
                                                   java.lang.String name,
                                                   java.lang.String desc,
                                                   java.lang.String signature,
                                                   java.lang.String[] exceptions)
Specified by:
visitMethod in interface org.objectweb.asm.ClassVisitor

visitEnd

public void visitEnd()
Specified by:
visitEnd in interface org.objectweb.asm.ClassVisitor

Knopflerfish OSGi 5.2.0