public void method(Clazz.MethodDef defined) { if (defined.isConstructor()) constructor(defined.access, defined.descriptor); else method(defined.access, defined.name, defined.descriptor); }
private void doVerify(Jar dot) throws Exception { Verifier verifier = new Verifier(dot, getProperties()); verifier.setPedantic(isPedantic()); // Give the verifier the benefit of our analysis // prevents parsing the files twice verifier.setClassSpace(classspace, contained, referred, uses); verifier.verify(); getInfo(verifier); }
protected void begin() { if (inited == false) { inited = true; super.begin(); updateModified(getBndLastModified(), "bnd last modified"); verifyManifestHeadersCase(getProperties()); } }
/** * 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. */ public void analyze() throws IOException { super.analyze(); cleanupVersion(imports); cleanupVersion(exports); String version = getProperty(BUNDLE_VERSION); if (version != null) setProperty(BUNDLE_VERSION, cleanupVersion(version)); }
public Macro getReplacer() { if (replacer == null) return replacer = new Macro(getProperties(), this, getMacroDomains()); else return replacer; }
/** * * @return */ boolean isResourceOnly() { return isTrue(getProperty(RESOURCEONLY)); }
/** * Return the properties but expand all macros. This always returns a new * Properties object that can be used in any way. * * @return */ public Properties getFlattenedProperties() { return getReplacer().getFlattenedProperties(); }
public Macro getReplacer() { if (replacer == null) return replacer = new Macro(this, getMacroDomains()); else return replacer; }
/** * Join a list. * * @param args * @return */ public static String join(Collection<?> list, String delimeter) { return join(delimeter, list); }
private CL getLoader() { if (pluginLoader == null) { pluginLoader = new CL(); } return pluginLoader; }
/** * Get the version for this bnd * * @return version or unknown. */ public String getBndVersion() { return getBndInfo("version", "1.42.1"); }
private void doVerify(Jar dot) throws Exception { Verifier verifier = new Verifier(dot, getProperties()); verifier.setPedantic(isPedantic()); // Give the verifier the benefit of our analysis // prevents parsing the files twice verifier.setClassSpace(classspace, contained, referred, uses); verifier.verify(); getInfo(verifier); }
/** * Return the properties but expand all macros. This always returns a new * Properties object that can be used in any way. * * @return */ public Properties getFlattenedProperties() { return getReplacer().getFlattenedProperties(); }