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

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

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

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

private boolean hasSource(Analyzer analyzer, String path) throws Exception {
  if (!path.endsWith(".class"))
    return false;
  TypeRef type = analyzer.getTypeRefFromPath(path);
  PackageRef packageRef = type.getPackageRef();
  Clazz clazz = analyzer.findClass(type);
  if (clazz == null)
    return false;
  String sourceFile = clazz.getSourceFile();
  if (sourceFile == null)
    return false;
  String source = "OSGI-OPT/src/" + packageRef.getBinary() + "/" + sourceFile;
  Resource sourceResource = analyzer.getJar()
    .getResource(source);
  if (sourceResource == null)
    return false;
  return true;
}
origin: biz.aQute.bnd/biz.aQute.bnd

private boolean hasSource(Analyzer analyzer, String path) throws Exception {
  if (!path.endsWith(".class"))
    return false;
  TypeRef type = analyzer.getTypeRefFromPath(path);
  PackageRef packageRef = type.getPackageRef();
  Clazz clazz = analyzer.findClass(type);
  if (clazz == null)
    return false;
  String sourceFile = clazz.getSourceFile();
  if (sourceFile == null)
    return false;
  String source = "OSGI-OPT/src/" + packageRef.getBinary() + "/" + sourceFile;
  Resource sourceResource = analyzer.getJar()
    .getResource(source);
  if (sourceResource == null)
    return false;
  return true;
}
aQute.bnd.osgiClazzgetSourceFile

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

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
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