com.atlassian.plugin.osgi.util
Class ClassBinaryScanner

java.lang.Object
  extended by com.atlassian.plugin.osgi.util.ClassBinaryScanner

public class ClassBinaryScanner
extends Object

Contains all the utility methods and classes for scanning class file binary.

Since:
2.10

Nested Class Summary
static class ClassBinaryScanner.InputStreamResource
          InputStream-based resource for class scanning purpose (in the format required by bndlib).
static class ClassBinaryScanner.ScanResult
          Contains the result of class binary scanning.
 
Constructor Summary
ClassBinaryScanner()
           
 
Method Summary
static ClassBinaryScanner.ScanResult scanClassBinary(aQute.lib.osgi.Clazz clazz)
          Scans class binary to extract 1) referred classes 2) imported packages 3) the class's superclass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassBinaryScanner

public ClassBinaryScanner()
Method Detail

scanClassBinary

public static ClassBinaryScanner.ScanResult scanClassBinary(aQute.lib.osgi.Clazz clazz)
                                                     throws IOException
Scans class binary to extract 1) referred classes 2) imported packages 3) the class's superclass.

Parameters:
clazz - the input class binary
Returns:
result, never null
Throws:
IOException - if the scan dies along the way
Since:
2.10


Copyright © 2012 Atlassian. All Rights Reserved.