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

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

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

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

public Map<String, Object> getDefaults() throws Exception {
  if (defaults == null) {
    Map<String, Object> map = defaults = new HashMap<>();
    parseClassFileWithCollector(new ClassDataCollector() {
      @Override
      public void annotationDefault(MethodDef last, Object value) {
        map.put(last.name, value);
      }
    });
  }
  return defaults;
}
origin: biz.aQute.bnd/biz.aQute.bnd

public Map<String, Object> getDefaults() throws Exception {
  if (defaults == null) {
    Map<String, Object> map = defaults = new HashMap<>();
    parseClassFileWithCollector(new ClassDataCollector() {
      @Override
      public void annotationDefault(MethodDef last, Object value) {
        map.put(last.name, value);
      }
    });
  }
  return defaults;
}
origin: biz.aQute.bnd/bndlib

public void with(Clazz clazz, ClassDataCollector cd) throws Exception {
  delegates.add(cd);
  try {
    clazz.parseClassFileWithCollector(this);
  }
  finally {
    delegates.remove(cd);
  }
}
origin: biz.aQute.bnd/bnd

public void with(Clazz clazz, ClassDataCollector cd) throws Exception {
  delegates.add(cd);
  try {
    clazz.parseClassFileWithCollector(this);
  }
  finally {
    delegates.remove(cd);
  }
}
origin: biz.aQute/bndlib

private String[] parseOptionValues(Clazz c) throws Exception {
  final List<String> values = Create.list();
  c.parseClassFileWithCollector(new ClassDataCollector() {
    @Override
    public void field(Clazz.FieldDef def) {
      if (def.isEnum()) {
        values.add(def.getName());
      }
    }
  });
  return values.toArray(new String[values.size()]);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private String[] parseOptionValues(Clazz c) throws Exception {
  final List<String> values = Create.list();
  c.parseClassFileWithCollector(new ClassDataCollector() {
    @Override
    public void field(Clazz.FieldDef def) {
      if (def.isEnum()) {
        values.add(def.getName());
      }
    }
  });
  return values.toArray(new String[0]);
}
origin: biz.aQute.bnd/bndlib

private String[] parseOptionValues(Clazz c) throws Exception {
  final List<String> values = Create.list();
  c.parseClassFileWithCollector(new ClassDataCollector() {
    @Override
    public void field(Clazz.FieldDef def) {
      if (def.isEnum()) {
        values.add(def.getName());
      }
    }
  });
  return values.toArray(new String[values.size()]);
}
origin: biz.aQute.bnd/bndlib

private OCDDef getDef() throws Exception {
  clazz.parseClassFileWithCollector(this);
  if (ocd != null) {
    doMethods();
  }
  return ocd;
}
origin: biz.aQute.bnd/bnd

private OCDDef getDef() throws Exception {
  clazz.parseClassFileWithCollector(this);
  if (ocd != null) {
    doMethods();
  }
  return ocd;
}
origin: biz.aQute.bnd/bnd

private String[] parseOptionValues(Clazz c) throws Exception {
  final List<String> values = Create.list();
  c.parseClassFileWithCollector(new ClassDataCollector() {
    @Override
    public void field(Clazz.FieldDef def) {
      if (def.isEnum()) {
        values.add(def.getName());
      }
    }
  });
  return values.toArray(new String[values.size()]);
}
origin: biz.aQute.bnd/biz.aQute.bnd

private String[] parseOptionValues(Clazz c) throws Exception {
  final List<String> values = Create.list();
  c.parseClassFileWithCollector(new ClassDataCollector() {
    @Override
    public void field(Clazz.FieldDef def) {
      if (def.isEnum()) {
        values.add(def.getName());
      }
    }
  });
  return values.toArray(new String[0]);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private void parseOptionValues(Clazz c, final List<OptionDef> options) throws Exception {
  c.parseClassFileWithCollector(new ClassDataCollector() {
    @Override
    public void field(Clazz.FieldDef def) {
      if (def.isEnum()) {
        OptionDef o = new OptionDef(def.getName(), def.getName());
        options.add(o);
      }
    }
  });
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private OCDDef getDef() throws Exception {
  clazz.parseClassFileWithCollector(new OCDDataCollector(ocd));
  if (ocd.id == null) {
    return null;
  }
  parseExtends(clazz);
  return ocd;
}
origin: biz.aQute.bnd/bndlib

private void parseOptionValues(Clazz c, final List<OptionDef> options) throws Exception {
  c.parseClassFileWithCollector(new ClassDataCollector() {
    @Override
    public void field(Clazz.FieldDef def) {
      if (def.isEnum()) {
        OptionDef o = new OptionDef(def.getName(), def.getName()); //TODO first arg should be "toString()" result
        options.add(o);
      }
    }
  });
}
origin: biz.aQute.bnd/biz.aQute.bnd

private OCDDef getDef() throws Exception {
  clazz.parseClassFileWithCollector(new OCDDataCollector(ocd));
  if (ocd.id == null) {
    return null;
  }
  parseExtends(clazz);
  return ocd;
}
origin: biz.aQute.bnd/bnd

private void parseOptionValues(Clazz c, final List<OptionDef> options) throws Exception {
  c.parseClassFileWithCollector(new ClassDataCollector() {
    @Override
    public void field(Clazz.FieldDef def) {
      if (def.isEnum()) {
        OptionDef o = new OptionDef(def.getName(), def.getName()); //TODO first arg should be "toString()" result
        options.add(o);
      }
    }
  });
}
origin: biz.aQute.bnd/biz.aQute.bnd

private void parseOptionValues(Clazz c, final List<OptionDef> options) throws Exception {
  c.parseClassFileWithCollector(new ClassDataCollector() {
    @Override
    public void field(Clazz.FieldDef def) {
      if (def.isEnum()) {
        OptionDef o = new OptionDef(def.getName(), def.getName());
        options.add(o);
      }
    }
  });
}
origin: biz.aQute/bndlib

public static Map<String,String> getDefinition(Clazz c, Reporter reporter) throws Exception {
  ComponentAnnotationReader r = new ComponentAnnotationReader(c);
  r.setReporter(reporter);
  c.parseClassFileWithCollector(r);
  r.finish();
  return r.map;
}
origin: biz.aQute.bnd/bndlib

public static Map<String,String> getDefinition(Clazz c, Reporter reporter) throws Exception {
  ComponentAnnotationReader r = new ComponentAnnotationReader(c);
  r.setReporter(reporter);
  c.parseClassFileWithCollector(r);
  r.finish();
  return r.map;
}
origin: biz.aQute.bnd/bnd

public static Map<String,String> getDefinition(Clazz c, Reporter reporter) throws Exception {
  ComponentAnnotationReader r = new ComponentAnnotationReader(c);
  r.setReporter(reporter);
  c.parseClassFileWithCollector(r);
  r.finish();
  return r.map;
}
aQute.bnd.osgiClazzparseClassFileWithCollector

Popular methods of Clazz

  • <init>
  • 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.
  • doAttributes
    Called for each attribute in the class, field, or method.
  • doAttribute,
  • doAttributes,
  • doCode,
  • doConstantValue,
  • doElementValue,
  • doEnclosingMethod,
  • doExceptions,
  • doInnerClasses,
  • doParameterAnnotations

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • CodeWhisperer alternatives
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