Codota Logo
Clazz.getFormat
Code IndexAdd Codota to your IDE (free)

How to use
getFormat
method
in
aQute.bnd.osgi.Clazz

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

  • Common ways to obtain Clazz
private void myMethod () {
Clazz c =
  • Codota IconQute.bnd.osgi.Analyzer analyzer;Qute.bnd.osgi.Descriptors.TypeRef typeRef;analyzer.findClass(typeRef)
  • Codota IconQute.bnd.osgi.Analyzer analyzer;String path;Qute.bnd.osgi.Resource resource;new Clazz(analyzer, path, resource)
  • Codota IconQute.bnd.osgi.Analyzer analyzer;String str;new Clazz(analyzer, str, null)
  • Smart code suggestions by Codota
}
origin: biz.aQute/bndlib

/**
 * Check if annotations are actually feasible looking at the class
 * format. If the class format does not provide annotations then it is
 * no use specifying annotated components.
 * 
 * @param name
 * @return
 * @throws Exception
 */
private Collection<Clazz> checkAnnotationsFeasible(String name) throws Exception {
  Collection<Clazz> not = analyzer.getClasses("", QUERY.NAMED.toString(), name //
      );
  if (not.isEmpty()) {
    if ("*".equals(name))
      return not;
    error("Specified %s but could not find any class matching this pattern", name);
  }
  for (Clazz c : not) {
    if (c.getFormat().hasAnnotations())
      return not;
  }
  warning("Wildcards are used (%s) requiring annotations to decide what is a component. Wildcard maps to classes that are compiled with java.target < 1.5. Annotations were introduced in Java 1.5",
      name);
  return not;
}
origin: biz.aQute.bnd/bnd

/**
 * Check if annotations are actually feasible looking at the class
 * format. If the class format does not provide annotations then it is
 * no use specifying annotated components.
 * 
 * @param name
 * @return
 * @throws Exception
 */
private Collection<Clazz> checkAnnotationsFeasible(String name) throws Exception {
  Collection<Clazz> not = analyzer.getClasses("", QUERY.NAMED.toString(), name //
      );
  if (not.isEmpty()) {
    if ("*".equals(name))
      return not;
    error("Specified %s but could not find any class matching this pattern", name);
  }
  for (Clazz c : not) {
    if (c.getFormat().hasAnnotations())
      return not;
  }
  warning("Wildcards are used (%s) requiring annotations to decide what is a component. Wildcard maps to classes that are compiled with java.target < 1.5. Annotations were introduced in Java 1.5",
      name);
  return not;
}
origin: biz.aQute.bnd/bndlib

/**
 * Check if annotations are actually feasible looking at the class
 * format. If the class format does not provide annotations then it is
 * no use specifying annotated components.
 * 
 * @param name
 * @return
 * @throws Exception
 */
private Collection<Clazz> checkAnnotationsFeasible(String name) throws Exception {
  Collection<Clazz> not = analyzer.getClasses("", QUERY.NAMED.toString(), name //
      );
  if (not.isEmpty()) {
    if ("*".equals(name))
      return not;
    error("Specified %s but could not find any class matching this pattern", name);
  }
  for (Clazz c : not) {
    if (c.getFormat().hasAnnotations())
      return not;
  }
  warning("Wildcards are used (%s) requiring annotations to decide what is a component. Wildcard maps to classes that are compiled with java.target < 1.5. Annotations were introduced in Java 1.5",
      name);
  return not;
}
origin: biz.aQute.bnd/biz.aQute.bnd

ees.add(c.getFormat());
origin: biz.aQute.bnd/biz.aQute.bndlib

ees.add(c.getFormat());
origin: biz.aQute/bndlib

ees.add(c.getFormat());
origin: biz.aQute.bnd/bndlib

ees.add(c.getFormat());
origin: biz.aQute.bnd/bnd

ees.add(c.getFormat());
aQute.bnd.osgiClazzgetFormat

Popular methods of Clazz

  • <init>
  • parseClassFileWithCollector
  • getClassName
  • getFQN
  • getReferred
  • is
  • isAnnotation
  • isInterface
  • crawl
    We must find Class.forName references ...
  • doAnnotation
  • doAnnotations
  • doAttribute
    Process a single attribute, if not recognized, skip it.
  • doAnnotations,
  • doAttribute,
  • doAttributes,
  • doCode,
  • doConstantValue,
  • doElementValue,
  • doEnclosingMethod,
  • doExceptions,
  • doInnerClasses,
  • doParameterAnnotations

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now