MCPcopy Create free account
hub / github.com/antlr/codebuff / getFilenames_

Method getFilenames_

src/org/antlr/codebuff/Tool.java:378–391  ·  view source on GitHub ↗
(File f, String inputFilePattern, List<String> files)

Source from the content-addressed store, hash-verified

376 }
377
378 public static void getFilenames_(File f, String inputFilePattern, List<String> files) {
379 // If this is a directory, walk each file/dir in that directory
380 if (f.isDirectory()) {
381 String flist[] = f.list();
382 for (String aFlist : flist) {
383 getFilenames_(new File(f, aFlist), inputFilePattern, files);
384 }
385 }
386
387 // otherwise, if this is an input file, load it!
388 else if ( inputFilePattern==null || f.getName().matches(inputFilePattern) ) {
389 files.add(f.getAbsolutePath());
390 }
391 }
392
393 public static String join(int[] array, String separator) {
394 StringBuilder builder = new StringBuilder();

Callers 1

getFilenamesMethod · 0.95

Calls 5

addMethod · 0.65
isDirectoryMethod · 0.45
listMethod · 0.45
matchesMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected