|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectaQute.lib.osgi.Processor
aQute.lib.osgi.Analyzer
public class Analyzer
| Field Summary |
|---|
| Fields inherited from class aQute.lib.osgi.Processor |
|---|
DEFAULT_PLUGINS, LIST_SPLITTER |
| Constructor Summary | |
|---|---|
Analyzer()
|
|
Analyzer(Processor parent)
|
|
| Method Summary | |
|---|---|
String |
_bsn(String[] args)
|
String |
_classes(String... args)
|
String |
_exporters(String[] args)
Get the exporter of a package ... |
String |
_findname(String[] args)
|
String |
_findpath(String[] args)
Findpath looks through the contents of the JAR and finds paths that end with the given regular expression ${findpath (; reg-expr (; replacement)? )? } |
void |
addClasspath(File cp)
|
void |
addClasspath(Jar jar)
|
void |
analyze()
Calcualtes the data structures for generating a manifest. |
Map<String,Clazz> |
analyzeBundleClasspath(Jar dot,
Map<String,Map<String,String>> bundleClasspath,
Map<String,Map<String,String>> contained,
Map<String,Map<String,String>> referred,
Map<String,Set<String>> uses)
|
protected void |
begin()
|
Manifest |
calcManifest()
One of the main workhorses of this class. |
String |
calculateExportsFromContents(Jar bundle)
Calculate an export header solely based on the contents of a JAR file |
boolean |
checkClass(String interfaceName)
Check if the given class or interface name is contained in the jar. |
static String |
cleanupVersion(String version)
|
void |
clear()
|
void |
close()
|
String |
getBndInfo(String key,
String defaultValue)
|
long |
getBndLastModified()
|
String |
getBsn()
Clear the key part of a header. |
Map<String,Map<String,String>> |
getBundleClasspath()
|
Collection<Clazz> |
getClasses(String... args)
|
List<Jar> |
getClasspath()
|
Map<String,Clazz> |
getClassspace()
|
Map<String,Map<String,String>> |
getContained()
|
Map<String,Map<String,String>> |
getExports()
|
protected String |
getImportPackages()
Analyzer has an empty default but the builder has a * as default. |
Map<String,Map<String,String>> |
getImports()
|
Jar |
getJar()
|
static Properties |
getManifest(File dirOrJar)
Specifically for Maven |
String |
getPackage(String clazz)
|
Map<String,Map<String,String>> |
getReferred()
|
Jar |
getTarget()
|
Set<String> |
getUnreachable()
Return the set of unreachable code depending on exports and the bundle activator. |
Map<String,Set<String>> |
getUses()
|
String |
getVersion()
Get the version from the manifest, a lot of work! |
String |
getVersionPolicy()
|
void |
mergeManifest(Manifest manifest)
Merge the existing manifest with the instructions. |
void |
putAll(Map<String,String> additional,
boolean force)
|
void |
setBase(File file)
|
void |
setClasspath(File[] classpath)
Set the classpath for this analyzer by file. |
void |
setClasspath(Jar[] classpath)
|
void |
setClasspath(String[] classpath)
|
Jar |
setJar(File jar)
Set the JAR file we are going to work in. |
Jar |
setJar(Jar jar)
Set the JAR directly we are going to work on. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Analyzer(Processor parent)
public Analyzer()
| Method Detail |
|---|
public static Properties getManifest(File dirOrJar)
throws IOException
properties - the properties
IOException
public void analyze()
throws IOException
IOExceptionprotected String getImportPackages()
public Manifest calcManifest()
throws IOException
IOExceptionpublic String getBsn()
value -
public String _bsn(String[] args)
public String calculateExportsFromContents(Jar bundle)
bundle - The jar file to analyze
public Map<String,Map<String,String>> getBundleClasspath()
public Map<String,Map<String,String>> getContained()
public Map<String,Map<String,String>> getExports()
public Map<String,Map<String,String>> getImports()
public Jar getJar()
public Map<String,Map<String,String>> getReferred()
public Set<String> getUnreachable()
public Map<String,Set<String>> getUses()
public String getVersion()
public long getBndLastModified()
public String getBndInfo(String key,
String defaultValue)
public void mergeManifest(Manifest manifest)
throws IOException
manifest - The manifest to merge with
IOExceptionpublic void setBase(File file)
setBase in class Processor
public void setClasspath(File[] classpath)
throws IOException
classpath -
IOExceptionpublic void setClasspath(Jar[] classpath)
public void setClasspath(String[] classpath)
public Jar setJar(File jar)
throws IOException
jar -
IOExceptionpublic Jar setJar(Jar jar)
jar -
protected void begin()
begin in class Processorpublic boolean checkClass(String interfaceName)
interfaceName -
public void close()
close in interface Closeableclose in class Processorpublic String _findpath(String[] args)
args -
public String _findname(String[] args)
public void putAll(Map<String,String> additional,
boolean force)
public List<Jar> getClasspath()
public void addClasspath(Jar jar)
public void addClasspath(File cp)
throws IOException
IOExceptionpublic void clear()
clear in class Processorpublic Jar getTarget()
public Map<String,Clazz> analyzeBundleClasspath(Jar dot,
Map<String,Map<String,String>> bundleClasspath,
Map<String,Map<String,String>> contained,
Map<String,Map<String,String>> referred,
Map<String,Set<String>> uses)
throws IOException
IOExceptionpublic static String cleanupVersion(String version)
public String getPackage(String clazz)
public String getVersionPolicy()
public String _classes(String... args)
public Collection<Clazz> getClasses(String... args)
public String _exporters(String[] args)
throws Exception
Exceptionpublic Map<String,Clazz> getClassspace()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||