com.springsource.bundlor.internal.asm
Class AsmTypeArtefactAnalyser
java.lang.Object
com.springsource.bundlor.internal.asm.AsmTypeArtefactAnalyser
- All Implemented Interfaces:
- ArtefactAnalyser
public final class AsmTypeArtefactAnalyser
- extends java.lang.Object
- implements ArtefactAnalyser
ArtefactAnalyser
implementation that uses ASM to scan .class
files for dependencies and exports.
Concurrent Semantics
Threadsafe.
- Author:
- Rob Harrop
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AsmTypeArtefactAnalyser
public AsmTypeArtefactAnalyser()
analyse
public void analyse(java.io.InputStream artefact,
java.lang.String artefactName,
PartialManifest model)
throws java.lang.Exception
- Description copied from interface:
ArtefactAnalyser
- Analyse the supplied artefact and update the supplied
PartialManifest
as needed.
- Specified by:
analyse
in interface ArtefactAnalyser
- Parameters:
artefact
- the artefact to scan.artefactName
- the name of the artefact.model
- the PartialManifest
to update.
- Throws:
java.lang.Exception
- if an error occurs during scanning.
canAnalyse
public boolean canAnalyse(java.lang.String artefactName)
- Description copied from interface:
ArtefactAnalyser
- Can this
ArtefactAnalyser
analyse the artefact with the supplied name.
- Specified by:
canAnalyse
in interface ArtefactAnalyser
- Parameters:
artefactName
- the name of the artefact.
- Returns:
true
if the artefact can be analysed; otherwise false
.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object