Tabnine Logo
aQute.bnd.osgi
Code IndexAdd Tabnine to your IDE (free)

How to use aQute.bnd.osgi

Best Java code snippets using aQute.bnd.osgi (Showing top 20 results out of 315)

origin: stackoverflow.com

 function Clazz() {};
Clazz.staticMethod = function() {
  alert('STATIC!!!');
};

Clazz.prototype.func = function() {
  this.constructor.staticMethod();
}

var obj = new Clazz();
obj.func(); // <- Alert's "STATIC!!!"
origin: stackoverflow.com

 Builder alert = new AlertDialog.Builder(screen4.this);
alert.setTitle("Doctor");
alert.setMessage("message");
alert.setPositiveButton("OK",null);
alert.show();
origin: stackoverflow.com

 Form form = new Form();
form.add("x", "foo");
form.add("y", "bar");

Client client = ClientBuilder.newClient();

WebTarget resource = client.target("http://localhost:8080/someresource");

Builder request = resource.request();
request.accept(MediaType.APPLICATION_JSON);

Response response = request.get();

if (response.getStatusInfo().getFamily() == Family.SUCCESSFUL) {
  System.out.println("Success! " + response.getStatus());
  System.out.println(response.getEntity());
} else {
  System.out.println("ERROR! " + response.getStatus());    
  System.out.println(response.getEntity());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public Verifier(Jar jar) throws Exception {
  this.analyzer = new Analyzer(this);
  this.analyzer.use(this);
  addClose(analyzer);
  this.analyzer.setJar(jar);
  this.manifest = this.analyzer.calcManifest();
  this.main = Domain.domain(manifest);
  this.dot = jar;
  getInfo(analyzer);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * @param p
 * @param pack
 */
private boolean isDynamicImport(PackageRef pack) {
  if (dynamicImports == null)
    dynamicImports = new Instructions(main.getDynamicImportPackage());
  if (dynamicImports.isEmpty())
    return false;
  return dynamicImports.matches(pack.getFQN());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public Verifier(Analyzer analyzer) throws Exception {
  super(analyzer);
  this.analyzer = analyzer;
  this.dot = analyzer.getJar();
  this.manifest = dot.getManifest();
  this.main = Domain.domain(manifest);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
protected void begin() {
  if (inited == false) {
    inited = true;
    super.begin();
    updateModified(getBndLastModified(), "bnd last modified");
    verifyManifestHeadersCase(getProperties());
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@SuppressWarnings("resource")
public static Jar fromResource(String name, Resource resource) throws Exception {
  if (resource instanceof JarResource) {
    return ((JarResource) resource).getJar();
  } else if (resource instanceof FileResource) {
    return new Jar(name, ((FileResource) resource).getFile());
  }
  return new Jar(name).buildFromResource(resource);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@SuppressWarnings("resource")
private String getProperty(String key, String deflt, String separator, boolean inherit) {
  Instruction ins = new Instruction(key);
  if (ins.isLiteral()) {
    return getLiteralProperty(ins.getLiteral(), deflt, this, inherit);
  }
  return getWildcardProperty(deflt, separator, inherit, ins);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private MethodSignature getMethodSignature(MethodDef method) {
  String signature = method.getSignature();
  return analyzer.getMethodSignature((signature != null) ? signature
    : method.getDescriptor()
      .toString());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public PreprocessResource(Processor processor, Resource r) {
  super(r.lastModified());
  this.processor = processor;
  this.resource = r;
  setExtra(resource.getExtra());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public boolean matches(String value) {
  if (size() == 0)
    return true;
  Instruction instr = matcher(value);
  if (instr == null || instr.isNegated())
    return false; // we deny this one explicitly
  return true;
}
origin: stackoverflow.com

new Analyzer() {
  public TokenStream tokenStream(String fieldName,
      Reader reader) {
origin: biz.aQute.bnd/biz.aQute.bndlib

public Macro getReplacer() {
  if (replacer == null)
    return replacer = new Macro(this, getMacroDomains());
  return replacer;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public void close() {
  if (closeJar) {
    jar.close();
  }
  super.close();
}
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Return the properties but expand all macros. This always returns a new
 * Properties object that can be used in any way.
 */
public Properties getFlattenedProperties(boolean ignoreInstructions) {
  return getReplacer().getFlattenedProperties(ignoreInstructions);
}
origin: biz.aQute.bnd/bndlib

public Verifier(Jar jar) throws Exception {
  this.analyzer = new Analyzer(this);
  this.analyzer.use(this);
  addClose(analyzer);
  this.analyzer.setJar(jar);
  this.manifest = this.analyzer.calcManifest();
  this.main = Domain.domain(manifest);
  this.dot = jar;
  getInfo(analyzer);
}
origin: biz.aQute/bndlib

/**
 * @param p
 * @param pack
 */
private boolean isDynamicImport(PackageRef pack) {
  if (dynamicImports == null)
    dynamicImports = new Instructions(main.getDynamicImportPackage());
  return dynamicImports.matches(pack.getFQN());
}
origin: biz.aQute/bndlib

public Verifier(Analyzer analyzer) throws Exception {
  this.analyzer = analyzer;
  this.dot = analyzer.getJar();
  this.manifest = dot.getManifest();
  this.main = Domain.domain(manifest);
}
origin: biz.aQute/bndlib

public Verifier(Jar jar) throws Exception {
  this.analyzer = new Analyzer(this);
  this.analyzer.use(this);
  addClose(analyzer);
  this.analyzer.setJar(jar);
  this.manifest = this.analyzer.calcManifest();
  this.main = Domain.domain(manifest);
  this.dot = jar;
  getInfo(analyzer);
}
aQute.bnd.osgi

Most used classes

  • Jar
  • Analyzer
  • Processor
  • Builder
    Include-Resource: ( [name '=' ] file )+ Private-Package: package-decl ( ',' package-decl )* Export-P
  • Resource
  • Clazz,
  • Descriptors$PackageRef,
  • Domain,
  • FileResource,
  • Packages,
  • Verifier,
  • ResourceBuilder,
  • Descriptors$TypeRef,
  • EmbeddedResource,
  • Instruction,
  • Instructions,
  • Macro,
  • Annotation,
  • Clazz$FieldDef
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now