Package com.atlassian.plugin.osgi.util
Class ClassBinaryScanner
java.lang.Object
com.atlassian.plugin.osgi.util.ClassBinaryScanner
Contains all the utility methods and classes for scanning class file binary.
- Since:
- 2.10
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInputStream-based resource for class scanning purpose (in the format required by bndlib).static classContains the result of class binary scanning. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscanClassBinary(aQute.bnd.osgi.Clazz clazz) Scans class binary to extract 1) referred classes 2) imported packages 3) the class's superclass.
-
Constructor Details
-
ClassBinaryScanner
public ClassBinaryScanner()
-
-
Method Details
-
scanClassBinary
public static ClassBinaryScanner.ScanResult scanClassBinary(aQute.bnd.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
-