congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Clazz.isAbstract
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public void implementsInterfaces(TypeRef names[]) throws Exception {
  Arrays.sort(names); // ignore type reordering
  for (TypeRef name : names) {
    String comment = null;
    if (clazz.isInterface() || clazz.isAbstract())
      comment = inherit(members, name);
    members.add(new Element(IMPLEMENTS, name.getFQN(), null, MINOR, MAJOR, comment));
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

@Override
public void implementsInterfaces(TypeRef names[]) throws Exception {
  Arrays.sort(names); // ignore type reordering
  for (TypeRef name : names) {
    String comment = null;
    if (clazz.isInterface() || clazz.isAbstract())
      comment = inherit(members, name);
    members.add(new Element(IMPLEMENTS, name.getFQN(), null, MINOR, MAJOR, comment));
  }
}
origin: biz.aQute/bndlib

@Override
public void implementsInterfaces(TypeRef names[]) throws Exception {
  // TODO is interface reordering important for binary
  // compatibility??
  for (TypeRef name : names) {
    String comment = null;
    if (clazz.isInterface() || clazz.isAbstract())
      comment = inherit(members, name);
    members.add(new Element(Type.IMPLEMENTS, name.getFQN(), null, MINOR, MAJOR, comment));
  }
}
origin: biz.aQute.bnd/bndlib

@Override
public void implementsInterfaces(TypeRef names[]) throws Exception {
  // TODO is interface reordering important for binary
  // compatibility??
  for (TypeRef name : names) {
    String comment = null;
    if (clazz.isInterface() || clazz.isAbstract())
      comment = inherit(members, name);
    members.add(new Element(Type.IMPLEMENTS, name.getFQN(), null, MINOR, MAJOR, comment));
  }
}
origin: biz.aQute.bnd/bnd

@Override
public void implementsInterfaces(TypeRef names[]) throws Exception {
  // TODO is interface reordering important for binary
  // compatibility??
  for (TypeRef name : names) {
    String comment = null;
    if (clazz.isInterface() || clazz.isAbstract())
      comment = inherit(members, name);
    members.add(new Element(Type.IMPLEMENTS, name.getFQN(), null, MINOR, MAJOR, comment));
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

return !isAbstract();
return isAbstract();
origin: biz.aQute.bnd/biz.aQute.bnd

return !isAbstract();
return isAbstract();
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.bnd/biz.aQute.bndlib

private boolean acceptableType(String rtype) {
  TypeRef ref = analyzer.getTypeRef(rtype);
  try {
    Clazz returnType = analyzer.findClass(ref);
    if (returnType.isEnum()) {
      return true;
    }
    // TODO check this is true for interfaces and annotations
    if (!returnType.isAbstract() || (returnType.isInterface() && options.contains(Options.nested))) {
      return true;
    }
    if (!returnType.isInterface()) {
      analyzer.error("Abstract classes not allowed as interface method return values: %s", rtype);
    } else {
      analyzer.error("Nested metatype only allowed with option: nested type %s", rtype);
    }
    return false;
  } catch (Exception e) {
    analyzer.exception(e, "could not examine class for return type %s, exception message: %s", rtype, e);
    return false;
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

private boolean acceptableType(String rtype) {
  TypeRef ref = analyzer.getTypeRef(rtype);
  try {
    Clazz returnType = analyzer.findClass(ref);
    if (returnType.isEnum()) {
      return true;
    }
    // TODO check this is true for interfaces and annotations
    if (!returnType.isAbstract() || (returnType.isInterface() && options.contains(Options.nested))) {
      return true;
    }
    if (!returnType.isInterface()) {
      analyzer.error("Abstract classes not allowed as interface method return values: %s", rtype);
    } else {
      analyzer.error("Nested metatype only allowed with option: nested type %s", rtype);
    }
    return false;
  } catch (Exception e) {
    analyzer.exception(e, "could not examine class for return type %s, exception message: %s", rtype, e);
    return false;
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

    bactivator, ActivatorErrorType.IS_INTERFACE);
} else {
  if (activatorClazz.isAbstract()) {
    registerActivatorErrorLocation(
      error("The Bundle Activator %s is abstract and therefore cannot be instantiated.",
origin: biz.aQute.bnd/biz.aQute.bnd

    bactivator, ActivatorErrorType.IS_INTERFACE);
} else {
  if (activatorClazz.isAbstract()) {
    registerActivatorErrorLocation(
      error("The Bundle Activator %s is abstract and therefore cannot be instantiated.",
origin: biz.aQute.bnd/bnd

      bactivator, ActivatorErrorType.IS_INTERFACE);
} else {
  if(activatorClazz.isAbstract()) {
    registerActivatorErrorLocation(error("The Bundle Activator " + bactivator + 
        " is abstract and therefore cannot be instantiated."),
origin: biz.aQute.bnd/bndlib

      bactivator, ActivatorErrorType.IS_INTERFACE);
} else {
  if(activatorClazz.isAbstract()) {
    registerActivatorErrorLocation(error("The Bundle Activator " + bactivator + 
        " is abstract and therefore cannot be instantiated."),
aQute.bnd.osgiClazzisAbstract

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
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • JTextField (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Option (scala)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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