Tabnine Logo
Analyzer.getSourceFileFor
Code IndexAdd Tabnine to your IDE (free)

How to use
getSourceFileFor
method
in
aQute.bnd.osgi.Analyzer

Best Java code snippets using aQute.bnd.osgi.Analyzer.getSourceFileFor (Showing top 6 results out of 315)

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

/**
 * Find the source file for this type
 * 
 * @param type
 * @throws Exception
 */
public String getSourceFileFor(TypeRef type) throws Exception {
  Set<File> sp = Collections.singleton(getFile(getProperty(DEFAULT_PROP_SRC_DIR, "src")));
  return getSourceFileFor(type, sp);
}
origin: biz.aQute.bnd/biz.aQute.bnd

/**
 * Find the source file for this type
 * 
 * @param type
 * @throws Exception
 */
public String getSourceFileFor(TypeRef type) throws Exception {
  Set<File> sp = Collections.singleton(getFile(getProperty(DEFAULT_PROP_SRC_DIR, "src")));
  return getSourceFileFor(type, sp);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

/**
 * Set location information for a type.
 */
public void setTypeLocation(SetLocation location, TypeRef type) throws Exception {
  String sf = getSourceFileFor(type);
  if (sf != null) {
    File sff = IO.getFile(sf);
    if (sff != null) {
      String names[] = {
        type.getShorterName(), type.getFQN(), type.getShortName()
          .replace('$', '.')
      };
      for (String name : names) {
        FileLine fl = Processor.findHeader(sff,
          Pattern.compile("(class|interface)\\s*" + name, Pattern.DOTALL));
        if (fl != null)
          fl.set(location);
      }
    }
    location.file(sf);
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

/**
 * Set location information for a type.
 */
public void setTypeLocation(SetLocation location, TypeRef type) throws Exception {
  String sf = getSourceFileFor(type);
  if (sf != null) {
    File sff = IO.getFile(sf);
    if (sff != null) {
      String names[] = {
        type.getShorterName(), type.getFQN(), type.getShortName()
          .replace('$', '.')
      };
      for (String name : names) {
        FileLine fl = Processor.findHeader(sff,
          Pattern.compile("(class|interface)\\s*" + name, Pattern.DOTALL));
        if (fl != null)
          fl.set(location);
      }
    }
    location.file(sf);
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

  clazz.getFQN());
TypeRef cname = clazz.getClassName();
String source = analyzer.getSourceFileFor(cname);
if (source != null) {
  File f = getFile(source);
origin: biz.aQute.bnd/biz.aQute.bnd

  clazz.getFQN());
TypeRef cname = clazz.getClassName();
String source = analyzer.getSourceFileFor(cname);
if (source != null) {
  File f = getFile(source);
aQute.bnd.osgiAnalyzergetSourceFileFor

Javadoc

Find the source file for this type

Popular methods of Analyzer

  • <init>
  • setProperty
  • calcManifest
    One of the main workhorses of this class. This will analyze the current setp and calculate a new man
  • getProperty
  • setJar
    Set the JAR file we are going to work in. This will read the JAR in memory.
  • getJar
  • setProperties
  • getReferred
  • analyze
    Calculates the data structures for generating a manifest.
  • error
  • findClass
    Find a clazz on the class path. This class has been parsed.
  • getBsn
    Clear the key part of a header. I.e. remove everything from the first ';'
  • findClass,
  • getBsn,
  • getClasses,
  • getClasspath,
  • getPackageRef,
  • getProperties,
  • getTypeRef,
  • parseHeader,
  • setBundleSymbolicName,
  • setBundleVersion

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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