@Override public Iterable<InputFile> get(Index index) { Path path = Paths.get(uri); Optional<String> relative = PathResolver.relativize(baseDir, path); if (!relative.isPresent()) { return Collections.emptyList(); } InputFile f = index.inputFile(relative.get()); return f != null ? Arrays.asList(f) : Collections.<InputFile>emptyList(); }
@Override public Iterable<InputFile> get(Index index) { if (path != null) { InputFile f = index.inputFile(this.path); if (f != null) { return Collections.singletonList(f); } } return Collections.emptyList(); }
@Override public Iterable<InputFile> get(Index index) { String relative = PathUtils.sanitize(new PathResolver().relativePath(baseDir.toFile(), new File(path))); if (relative == null) { return Collections.emptyList(); } InputFile f = index.inputFile(relative); return f != null ? Arrays.asList(f) : Collections.<InputFile>emptyList(); }
@Override public Iterable<InputFile> get(Index index) { InputFile f = index.inputFile(this.path); return f != null ? Arrays.asList(f) : Collections.<InputFile>emptyList(); }
@Override public Iterable<InputFile> get(Index index) { String relative = PathUtils.sanitize(new PathResolver().relativePath(baseDir.toFile(), new File(path))); if (relative == null) { return Collections.emptyList(); } InputFile f = index.inputFile(relative); return f != null ? Arrays.asList(f) : Collections.<InputFile>emptyList(); }
@Override public Iterable<InputFile> get(Index index) { Path path = Paths.get(uri); Optional<String> relative = PathResolver.relativize(baseDir, path); if (!relative.isPresent()) { return Collections.emptyList(); } InputFile f = index.inputFile(relative.get()); return f != null ? Arrays.asList(f) : Collections.<InputFile>emptyList(); }
@Override public Iterable<InputFile> get(Index index) { InputFile f = index.inputFile(this.path); return f != null ? Arrays.asList(f) : Collections.<InputFile>emptyList(); }
@Override public Iterable<InputFile> get(Index index) { String relative = PathUtils.sanitize(new PathResolver().relativePath(baseDir.toFile(), new File(path))); if (relative == null) { return Collections.<InputFile>emptyList(); } InputFile f = index.inputFile(relative); return f != null ? Arrays.asList(f) : Collections.<InputFile>emptyList(); }
@Override public Iterable<InputFile> get(Index index) { if (path != null) { InputFile f = index.inputFile(this.path); if (f != null) { return Collections.singletonList(f); } } return Collections.emptyList(); }