org.netbeans.api.java.classpath.ClassPath.findAllResources()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中org.netbeans.api.java.classpath.ClassPath.findAllResources()方法的一些代码示例,展示了ClassPath.findAllResources()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ClassPath.findAllResources()方法的具体详情如下:
包路径:org.netbeans.api.java.classpath.ClassPath
类名称:ClassPath
方法名:findAllResources

ClassPath.findAllResources介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-debugger-jpda-projects

fos = new ArrayList<FileObject>();
for (ClassPath cp : GlobalPathRegistry.getDefault().getPaths(ClassPath.SOURCE)) {
  fos.addAll(cp.findAllResources(relativePath));
    fos = smartSteppingSourcePath.findAllResources(relativePath);
                                if (verbose) System.out.println ("SPPI:   fos " + fos);
  } else {
    fos = originalSourcePath.findAllResources(relativePath);
                                if (verbose) System.out.println ("SPPI:   fos " + fos);

代码示例来源:origin: dcaoyuan/nbscala

fos = new ArrayList<FileObject>();
for (ClassPath cp : GlobalPathRegistry.getDefault().getPaths(ClassPath.SOURCE)) {
  fos.addAll(cp.findAllResources(relativePath));
    fos = smartSteppingSourcePath.findAllResources(relativePath);
                                if (verbose) System.out.println ("SPPI:   fos " + fos);
  } else {
    fos = originalSourcePath.findAllResources(relativePath);
                                if (verbose) System.out.println ("SPPI:   fos " + fos);

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-java-source-base

@NonNull
private static List<Pair<FileObject, ClassPath>> findAllResources(
    @NonNull final String resourceName,
    @NonNull final ClassPath[] cps) {
  final List<Pair<FileObject,ClassPath>> result = new ArrayList<>();
  for (ClassPath cp : cps) {
    for (FileObject fo : cp.findAllResources(resourceName)) {
      result.add(Pair.<FileObject,ClassPath>of(fo, cp));
    }            
  }
  return result;
}

代码示例来源:origin: AlexFalappa/nb-springboot

private void updateConfigRepo() {
  logger.fine("Updating config metadata repo");
  repo = new SimpleConfigurationMetadataRepository();
  final List<FileObject> cfgMetaFiles = cpExec.findAllResources(METADATA_JSON);
  for (FileObject fo : cfgMetaFiles) {
    try {

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-java-source-base

LinkedList<FileObject> folders = new LinkedList<>(sourcePath.findAllResources(pkgName));
if (pkg) {
  return folders.isEmpty() ? pair.first() : folders.get(0);

相关文章