congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Clazz.is
Code IndexAdd Tabnine to your IDE (free)

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

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

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

if (options.contains(Discover.all) && !clazz.is(QUERY.CONCRETE, null, analyzer)) {
  return null;
  if (clazz.is(QUERY.ANNOTATED, VETOED_INSTR, analyzer)
    || (!clazz.is(QUERY.INDIRECTLY_ANNOTATED, COMPONENTSCOPED_INSTR, analyzer)
      && !clazz.is(QUERY.INDIRECTLY_ANNOTATED, NORMALSCOPE_INSTR, analyzer)
      && !clazz.is(QUERY.INDIRECTLY_ANNOTATED, STEREOTYPE_INSTR, analyzer)
      && !clazz.is(QUERY.ANNOTATED, DEPENDENT_INSTR, analyzer)
      && !clazz.is(QUERY.ANNOTATED, INTERCEPTOR_INSTR, analyzer))
    || clazz.is(QUERY.IMPLEMENTS, EXTENSION_INSTR, analyzer)) {
  if (packageClazz != null && packageClazz.is(QUERY.ANNOTATED, VETOED_INSTR, analyzer)) {
    return null;
origin: biz.aQute/bndlib

if (!clazz.is(type, instr, this)) {
  c.remove();
origin: biz.aQute.bnd/bndlib

if (!activatorClazz.is(QUERY.IMPLEMENTS, 
    new Instruction("org.osgi.framework.BundleActivator"), analyzer)) {
  registerActivatorErrorLocation(error("The Bundle Activator " + bactivator + 
origin: biz.aQute.bnd/biz.aQute.bnd

if (options.contains(Discover.all) && !clazz.is(QUERY.CONCRETE, null, analyzer)) {
  return null;
  if (clazz.is(QUERY.ANNOTATED, VETOED_INSTR, analyzer)
    || (!clazz.is(QUERY.INDIRECTLY_ANNOTATED, COMPONENTSCOPED_INSTR, analyzer)
      && !clazz.is(QUERY.INDIRECTLY_ANNOTATED, NORMALSCOPE_INSTR, analyzer)
      && !clazz.is(QUERY.INDIRECTLY_ANNOTATED, STEREOTYPE_INSTR, analyzer)
      && !clazz.is(QUERY.ANNOTATED, DEPENDENT_INSTR, analyzer)
      && !clazz.is(QUERY.ANNOTATED, INTERCEPTOR_INSTR, analyzer))
    || clazz.is(QUERY.IMPLEMENTS, EXTENSION_INSTR, analyzer)) {
  if (packageClazz != null && packageClazz.is(QUERY.ANNOTATED, VETOED_INSTR, analyzer)) {
    return null;
origin: biz.aQute.bnd/bnd

if (!activatorClazz.is(QUERY.IMPLEMENTS, 
    new Instruction("org.osgi.framework.BundleActivator"), analyzer)) {
  registerActivatorErrorLocation(error("The Bundle Activator " + bactivator + 
origin: biz.aQute.bnd/bndlib

if (!clazz.is(type, instr, this)) {
  c.remove();
origin: biz.aQute.bnd/biz.aQute.bndlib

  if (clazz.is(ANNOTATED, COMPONENT_INSTR, analyzer)) {
    analyzer
      .error("The type %s is not a class and therfore not suitable for the @Component annotation",
if (!clazz.is(ANNOTATED, COMPONENT_INSTR, analyzer)) {
origin: biz.aQute.bnd/bnd

if (!clazz.is(type, instr, this)) {
  c.remove();
origin: biz.aQute.bnd/biz.aQute.bnd

  if (clazz.is(ANNOTATED, COMPONENT_INSTR, analyzer)) {
    analyzer
      .error("The type %s is not a class and therfore not suitable for the @Component annotation",
if (!clazz.is(ANNOTATED, COMPONENT_INSTR, analyzer)) {
origin: biz.aQute.bnd/biz.aQute.bndlib

if (!clazz.is(type, instr, this)) {
  c.remove();
origin: biz.aQute.bnd/biz.aQute.bnd

if (!clazz.is(type, instr, this)) {
  c.remove();
origin: biz.aQute.bnd/biz.aQute.bndlib

  if (instr == null)
    throw new IllegalArgumentException("Not enough arguments in ${packages} macro");
  accept = pkgInfo != null && pkgInfo.is(Clazz.QUERY.ANNOTATED, instr, this);
  break;
case VERSIONED :
origin: biz.aQute.bnd/biz.aQute.bnd

  if (instr == null)
    throw new IllegalArgumentException("Not enough arguments in ${packages} macro");
  accept = pkgInfo != null && pkgInfo.is(Clazz.QUERY.ANNOTATED, instr, this);
  break;
case VERSIONED :
origin: apache/felix

/**
 * Check if an annotation applied on the component class is a component property type.
 * (the following is adapted from the original bnd DS AnnotationReader class)
 */
private void handlePossibleComponentPropertyAnnotation(Annotation annotation) {
  m_logger.debug("Checking possible component property annotations %s", annotation);
  
  try {
    Clazz clazz = m_analyzer.findClass(annotation.getName());
    if (clazz == null) {
      m_logger.debug(
          "Unable to find the annotation %s applied to type %s from project build path (ignoring it).",
          annotation.getName().getFQN(), m_currentClassName);
      return;
    }
    if (clazz.is(ANNOTATED, DS_PROPERTY_TYPE, m_analyzer) || clazz.is(ANNOTATED, DM_PROPERTY_TYPE, m_analyzer)) {
      m_logger.debug("Found component property type %s", annotation);
      m_componentPropertyTypes.add(annotation);
    } else {
      m_logger.debug("The annotation %s on component type %s will not be used for properties as the annotation is not annotated with @ComponentPropertyType",
          clazz.getFQN(), m_currentClassName);
      return;
    }
  } catch (Exception e) {
    m_logger.error("An error occurred when attempting to process annotation %s, applied to component %s", e, 
        annotation.getName().getFQN(), m_currentClassName);
  }        
}       
origin: biz.aQute.bnd/biz.aQute.bndlib

if (clazz.is(ANNOTATED, COMPONENT_PROPERTY_INSTR, analyzer)) {
  String propertyDefKey = String.format(ComponentDef.PROPERTYDEF_ANNOTATIONFORMAT,
    ++componentPropertyTypeCount);
origin: biz.aQute/bndlib

  return false;
return clazz.is(query, instr, analyzer);
origin: biz.aQute.bnd/biz.aQute.bnd

if (clazz.is(ANNOTATED, COMPONENT_PROPERTY_INSTR, analyzer)) {
  String propertyDefKey = String.format(ComponentDef.PROPERTYDEF_ANNOTATIONFORMAT,
    ++componentPropertyTypeCount);
origin: biz.aQute.bnd/bndlib

  return false;
return clazz.is(query, instr, analyzer);
origin: biz.aQute.bnd/bnd

  return false;
return clazz.is(query, instr, analyzer);
aQute.bnd.osgiClazzis

Popular methods of Clazz

  • <init>
  • parseClassFileWithCollector
  • getClassName
  • getFQN
  • getReferred
  • isAnnotation
  • isInterface
  • crawl
    We must find Class.forName references ...
  • doAnnotation
  • doAnnotations
  • doAttribute
    Process a single attribute, if not recognized, skip it.
  • doAttributes
    Called for each attribute in the class, field, or method.
  • doAttribute,
  • doAttributes,
  • doCode,
  • doConstantValue,
  • doElementValue,
  • doEnclosingMethod,
  • doExceptions,
  • doInnerClasses,
  • doParameterAnnotations

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JButton (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 17 Plugins for Android Studio
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