Tabnine Logo
Clazz.getInterfaces
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: biz.aQute/bndlib

/**
 * Find the packages we depend on, where we implement an interface that is a
 * Provider Type. These packages, when we import them, must use the provider
 * policy.
 * 
 * @throws Exception
 */
Set<PackageRef> findProvidedPackages() throws Exception {
  Set<PackageRef> providers = Create.set();
  Set<TypeRef> cached = Create.set();
  for (Clazz c : classspace.values()) {
    TypeRef[] interfaces = c.getInterfaces();
    if (interfaces != null)
      for (TypeRef t : interfaces)
        if (cached.contains(t) || isProvider(t)) {
          cached.add(t);
          providers.add(t.getPackageRef());
        }
  }
  return providers;
}
origin: biz.aQute.bnd/bndlib

/**
 * Find the packages we depend on, where we implement an interface that is a
 * Provider Type. These packages, when we import them, must use the provider
 * policy.
 * 
 * @throws Exception
 */
Set<PackageRef> findProvidedPackages() throws Exception {
  Set<PackageRef> providers = Create.set();
  Set<TypeRef> cached = Create.set();
  for (Clazz c : classspace.values()) {
    TypeRef[] interfaces = c.getInterfaces();
    if (interfaces != null)
      for (TypeRef t : interfaces)
        if (cached.contains(t) || isProvider(t)) {
          cached.add(t);
          providers.add(t.getPackageRef());
        }
  }
  return providers;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private void handleInheritedClasses(Clazz child) throws Exception {
  TypeRef[] ifaces = child.getInterfaces();
  if (ifaces != null) {
    for (TypeRef ref : ifaces) {
      parseAndMergeInheritedMetadata(ref, child);
    }
  }
  TypeRef superClazz = child.getSuper();
  if (superClazz != null) {
    parseAndMergeInheritedMetadata(superClazz, child);
  }
}
origin: biz.aQute.bnd/bnd

/**
 * Find the packages we depend on, where we implement an interface that is a
 * Provider Type. These packages, when we import them, must use the provider
 * policy.
 * 
 * @throws Exception
 */
Set<PackageRef> findProvidedPackages() throws Exception {
  Set<PackageRef> providers = Create.set();
  Set<TypeRef> cached = Create.set();
  for (Clazz c : classspace.values()) {
    TypeRef[] interfaces = c.getInterfaces();
    if (interfaces != null)
      for (TypeRef t : interfaces)
        if (cached.contains(t) || isProvider(t)) {
          cached.add(t);
          providers.add(t.getPackageRef());
        }
  }
  return providers;
}
origin: biz.aQute.bnd/biz.aQute.bnd

private void handleInheritedClasses(Clazz child) throws Exception {
  TypeRef[] ifaces = child.getInterfaces();
  if (ifaces != null) {
    for (TypeRef ref : ifaces) {
      parseAndMergeInheritedMetadata(ref, child);
    }
  }
  TypeRef superClazz = child.getSuper();
  if (superClazz != null) {
    parseAndMergeInheritedMetadata(superClazz, child);
  }
}
origin: biz.aQute.bnd/bnd

private void handleInheritedClasses(Clazz child) throws Exception {
  TypeRef[] ifaces = child.getInterfaces();
  if (ifaces != null) {
    for (TypeRef ref : ifaces) {
      parseAndMergeInheritedMetadata(ref, child);
    }
  }
  TypeRef superClazz = child.getSuper();
  if (superClazz != null) {
    parseAndMergeInheritedMetadata(superClazz, child);
  }
}
origin: biz.aQute.bnd/bndlib

private void handleInheritedClasses(Clazz child) throws Exception {
  TypeRef[] ifaces = child.getInterfaces();
  if (ifaces != null) {
    for (TypeRef ref : ifaces) {
      parseAndMergeInheritedMetadata(ref, child);
    }
  }
  TypeRef superClazz = child.getSuper();
  if (superClazz != null) {
    parseAndMergeInheritedMetadata(superClazz, child);
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private boolean identifiableCollection(TypeRef type, boolean intface, boolean topLevel) {
  try {
    Clazz clazz = analyzer.findClass(type);
    if (clazz != null && (!topLevel || !clazz.isAbstract())
      && ((intface && clazz.isInterface()) ^ clazz.hasPublicNoArgsConstructor())) {
      TypeRef[] intfs = clazz.getInterfaces();
      if (intfs != null) {
        for (TypeRef intf : intfs) {
          if (COLLECTION.matcher(intf.getFQN())
            .matches() || identifiableCollection(intf, true, false)) {
            return true;
          }
        }
      }
      TypeRef ext = clazz.getSuper();
      return ext != null && identifiableCollection(ext, false, false);
    }
  } catch (Exception e) {
    return false;
  }
  return false;
}
origin: biz.aQute.bnd/biz.aQute.bnd

private boolean identifiableCollection(TypeRef type, boolean intface, boolean topLevel) {
  try {
    Clazz clazz = analyzer.findClass(type);
    if (clazz != null && (!topLevel || !clazz.isAbstract())
      && ((intface && clazz.isInterface()) ^ clazz.hasPublicNoArgsConstructor())) {
      TypeRef[] intfs = clazz.getInterfaces();
      if (intfs != null) {
        for (TypeRef intf : intfs) {
          if (COLLECTION.matcher(intf.getFQN())
            .matches() || identifiableCollection(intf, true, false)) {
            return true;
          }
        }
      }
      TypeRef ext = clazz.getSuper();
      return ext != null && identifiableCollection(ext, false, false);
    }
  } catch (Exception e) {
    return false;
  }
  return false;
}
origin: biz.aQute/bndlib

getCovariantReturns(set, clazz.getSuper());
TypeRef[] interfaces = clazz.getInterfaces();
if (interfaces != null)
  for (TypeRef intf : interfaces) {
origin: biz.aQute.bnd/biz.aQute.bndlib

TypeRef[] intfs = annoServiceClazz.getInterfaces();
if (intfs != null) {
  for (TypeRef intf : intfs) {
origin: biz.aQute.bnd/biz.aQute.bndlib

private void parseExtends(Clazz clazz) {
  TypeRef[] inherits = clazz.getInterfaces();
  if (inherits != null) {
    for (TypeRef typeRef : inherits) {
      if (!typeRef.isJava() && analyzed.add(typeRef)) {
        try {
          Clazz inherit = analyzer.findClass(typeRef);
          if (inherit != null) {
            inherit.parseClassFileWithCollector(new OCDDataCollector(ocd));
            parseExtends(inherit);
          } else {
            analyzer.error("Could not obtain super class %s of class %s", typeRef.getFQN(),
              clazz.getClassName()
                .getFQN());
          }
        } catch (Exception e) {
          analyzer.exception(e, "Could not obtain super class %s of class %s; exception %s",
            typeRef.getFQN(), clazz.getClassName()
              .getFQN(),
            e);
        }
      }
    }
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

TypeRef[] intfs = annoServiceClazz.getInterfaces();
if (intfs != null) {
  for (TypeRef intf : intfs) {
origin: biz.aQute.bnd/biz.aQute.bnd

private void parseExtends(Clazz clazz) {
  TypeRef[] inherits = clazz.getInterfaces();
  if (inherits != null) {
    for (TypeRef typeRef : inherits) {
      if (!typeRef.isJava() && analyzed.add(typeRef)) {
        try {
          Clazz inherit = analyzer.findClass(typeRef);
          if (inherit != null) {
            inherit.parseClassFileWithCollector(new OCDDataCollector(ocd));
            parseExtends(inherit);
          } else {
            analyzer.error("Could not obtain super class %s of class %s", typeRef.getFQN(),
              clazz.getClassName()
                .getFQN());
          }
        } catch (Exception e) {
          analyzer.exception(e, "Could not obtain super class %s of class %s; exception %s",
            typeRef.getFQN(), clazz.getClassName()
              .getFQN(),
            e);
        }
      }
    }
  }
}
aQute.bnd.osgiClazzgetInterfaces

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

  • Finding current android device location
  • putExtra (Intent)
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Menu (java.awt)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Top plugins for WebStorm
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