本文整理了Java中aQute.bnd.osgi.Analyzer.analyze()
方法的一些代码示例,展示了Analyzer.analyze()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.analyze()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Analyzer
类名称:Analyzer
方法名:analyze
[英]Calculates the data structures for generating a manifest.
[中]
代码示例来源:origin: stackoverflow.com
public static void main (String... args) throws Exception {
Analyzer a = new Analyzer();
ClassPool pool = ClassPool.getDefault();
CtClass cc = pool.get("test.Foo");
for (CtMethod cm : cc.getDeclaredMethods()) {
Frame[] frames = a.analyze(cm);
for (Frame f : frames) {
System.out.println(f);
}
}
}
代码示例来源:origin: biz.aQute/bndlib
static Element getAPI(Analyzer analyzer) throws Exception {
analyzer.analyze();
JavaElement te = new JavaElement(analyzer);
return te.getLocalAPI();
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
static Element getAPI(Analyzer analyzer) throws Exception {
analyzer.analyze();
JavaElement te = new JavaElement(analyzer);
return te.getLocalAPI();
}
代码示例来源:origin: biz.aQute.bnd/bndlib
static Element getAPI(Analyzer analyzer) throws Exception {
analyzer.analyze();
JavaElement te = new JavaElement(analyzer);
return te.getLocalAPI();
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
static Element getAPI(Analyzer analyzer) throws Exception {
analyzer.analyze();
JavaElement te = new JavaElement(analyzer);
return te.getLocalAPI();
}
代码示例来源:origin: biz.aQute.bnd/bnd
static Element getAPI(Analyzer analyzer) throws Exception {
analyzer.analyze();
JavaElement te = new JavaElement(analyzer);
return te.getLocalAPI();
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Report the details of this analyzer
*/
@Override
public void report(Map<String, Object> table) throws Exception {
super.report(table);
analyze();
table.put("Contained", getContained().entrySet());
table.put("Imported", getImports().entrySet());
table.put("Exported", getExports().entrySet());
table.put("Referred", getReferred().entrySet());
table.put("Bundle Symbolic Name", getBsn());
table.put("Execution Environments", ees);
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
/**
* Report the details of this analyzer
*/
@Override
public void report(Map<String, Object> table) throws Exception {
super.report(table);
analyze();
table.put("Contained", getContained().entrySet());
table.put("Imported", getImports().entrySet());
table.put("Exported", getExports().entrySet());
table.put("Referred", getReferred().entrySet());
table.put("Bundle Symbolic Name", getBsn());
table.put("Execution Environments", ees);
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Report the details of this analyzer
*/
public void report(Map<String,Object> table) throws Exception {
super.report(table);
analyze();
table.put("Contained", getContained().entrySet());
table.put("Imported", getImports().entrySet());
table.put("Exported", getExports().entrySet());
table.put("Referred", getReferred().entrySet());
table.put("Referred", getReferred().entrySet());
table.put("Bundle Symbolic Name", getBsn());
table.put("Execution Environments", ees);
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Report the details of this analyzer
*/
public void report(Map<String,Object> table) throws Exception {
super.report(table);
analyze();
table.put("Contained", getContained().entrySet());
table.put("Imported", getImports().entrySet());
table.put("Exported", getExports().entrySet());
table.put("Referred", getReferred().entrySet());
table.put("Referred", getReferred().entrySet());
table.put("Bundle Symbolic Name", getBsn());
table.put("Execution Environments", ees);
}
代码示例来源:origin: biz.aQute/bndlib
analyze();
Manifest manifest = new Manifest();
Attributes main = manifest.getMainAttributes();
代码示例来源:origin: biz.aQute/bndlib
/**
* Intercept the call to analyze and cleanup versions after we have analyzed
* the setup. We do not want to cleanup if we are going to verify.
*/
@Override
public void analyze() throws Exception {
super.analyze();
cleanupVersion(getImports(), null);
cleanupVersion(getExports(), getVersion());
String version = getProperty(BUNDLE_VERSION);
if (version != null) {
version = cleanupVersion(version);
if (version.endsWith(".SNAPSHOT")) {
version = version.replaceAll("SNAPSHOT$", getProperty(SNAPSHOT, "SNAPSHOT"));
}
setProperty(BUNDLE_VERSION, version);
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Intercept the call to analyze and cleanup versions after we have analyzed
* the setup. We do not want to cleanup if we are going to verify.
*/
@Override
public void analyze() throws Exception {
super.analyze();
cleanupVersion(getImports(), null);
cleanupVersion(getExports(), getVersion());
String version = getProperty(BUNDLE_VERSION);
if (version != null) {
version = cleanupVersion(version);
if (version.endsWith(".SNAPSHOT")) {
version = version.replaceAll("SNAPSHOT$", getProperty(SNAPSHOT, "SNAPSHOT"));
}
setProperty(BUNDLE_VERSION, version);
}
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Intercept the call to analyze and cleanup versions after we have analyzed
* the setup. We do not want to cleanup if we are going to verify.
*/
@Override
public void analyze() throws Exception {
super.analyze();
cleanupVersion(getImports(), null);
cleanupVersion(getExports(), getVersion());
String version = getProperty(BUNDLE_VERSION);
if (version != null) {
version = cleanupVersion(version);
if (version.endsWith(".SNAPSHOT")) {
version = version.replaceAll("SNAPSHOT$", getProperty(SNAPSHOT, "SNAPSHOT"));
}
setProperty(BUNDLE_VERSION, version);
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
@Description("Show the Execution Environments of a JAR")
public void _ees(EEOptions options) throws Exception {
for (String path : options._()) {
File f = getFile(path);
if (!f.isFile()) {
error("Not a file");
} else {
Jar jar = new Jar(f);
Analyzer a = new Analyzer(this);
try {
a.setJar(jar);
a.analyze();
out.printf("%s %s%n", jar.getName(), a.getEEs());
}
finally {
a.close();
}
}
}
}
代码示例来源:origin: biz.aQute.bnd/bndlib
analyze();
Manifest manifest = new Manifest();
Attributes main = manifest.getMainAttributes();
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
analyze();
Manifest manifest = new Manifest();
Attributes main = manifest.getMainAttributes();
代码示例来源:origin: biz.aQute.bnd/bnd
analyzer.setExportPackage(s);
analyzer.analyze();
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Intercept the call to analyze and cleanup versions after we have analyzed
* the setup. We do not want to cleanup if we are going to verify.
*/
@Override
public void analyze() throws Exception {
super.analyze();
cleanupVersion(getImports(), null);
cleanupVersion(getExports(), getVersion());
String version = getProperty(BUNDLE_VERSION);
if (version != null) {
version = cleanupVersion(version);
version = doSnapshot(version);
setProperty(BUNDLE_VERSION, version);
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
/**
* Intercept the call to analyze and cleanup versions after we have analyzed
* the setup. We do not want to cleanup if we are going to verify.
*/
@Override
public void analyze() throws Exception {
super.analyze();
cleanupVersion(getImports(), null);
cleanupVersion(getExports(), getVersion());
String version = getProperty(BUNDLE_VERSION);
if (version != null) {
version = cleanupVersion(version);
version = doSnapshot(version);
setProperty(BUNDLE_VERSION, version);
}
}
内容来源于网络,如有侵权,请联系作者删除!