Codota Logo
Directory.parseKey
Code IndexAdd Codota to your IDE (free)

How to use
parseKey
method
in
org.sonar.api.resources.Directory

Best Java code snippets using org.sonar.api.resources.Directory.parseKey (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.codehaus.sonar/sonar-plugin-api

/**
 * @deprecated since 4.2 use {@link #fromIOFile(java.io.File, Project)}
 */
@Deprecated
public Directory(String relativePathFromSourceDir, Language language) {
 this.relativePathFromSourceDir = parseKey(relativePathFromSourceDir);
}
origin: org.codehaus.sonar/sonar-plugin-api

/**
 * @deprecated since 4.2 use {@link FileSystem#inputFile(org.sonar.api.batch.fs.FilePredicate)}
 */
@Deprecated
public File(String relativeDirectoryPathFromSourceDir, String filename) {
 this.filename = StringUtils.trim(filename);
 if (StringUtils.isBlank(relativeDirectoryPathFromSourceDir)) {
  this.relativePathFromSourceDir = filename;
 } else {
  this.relativePathFromSourceDir = new StringBuilder().append(Directory.parseKey(relativeDirectoryPathFromSourceDir)).append(Directory.SEPARATOR).append(this.filename)
   .toString();
 }
}
origin: org.codehaus.sonar/sonar-batch

private String oldParentKey(String oldKey) {
 String cleanKey = StringUtils.trim(oldKey.replace('\\', '/'));
 if (cleanKey.indexOf(Directory.SEPARATOR) >= 0) {
  String oldParentKey = Directory.parseKey(StringUtils.substringBeforeLast(oldKey, Directory.SEPARATOR));
  oldParentKey = StringUtils.removeStart(oldParentKey, Directory.SEPARATOR);
  oldParentKey = StringUtils.removeEnd(oldParentKey, Directory.SEPARATOR);
  return oldParentKey;
 } else {
  return Directory.ROOT;
 }
}
org.sonar.api.resourcesDirectoryparseKey

Popular methods of Directory

  • create
    Internal use only.
  • fromIOFile
  • <init>
  • getKey
  • getPath
  • relativePathFromSourceDir
    Internal.
  • add
  • closeDirectory
  • delete
  • equals
  • inDirectory
  • normalize
  • inDirectory,
  • normalize,
  • setKey,
  • setPath

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • onRequestPermissionsResult (Fragment)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now