public boolean accept(File pathname) { URI relativeURI = this.basedir.toURI().relativize(pathname.toURI()); String relativePath = relativeURI.toString(); return this.matcher.match(this.pattern, relativePath); } }
/** * Whether to use the server-side declaration for this declaration. * * @param declaration The declaration. * @param matcher The matcher. * @return Whether to use the server-side declaration for this declaration. */ protected boolean useServerSide(TypeDeclaration declaration, AntPatternMatcher matcher) { boolean useServerSide = false; for (String pattern : serverSideTypesToUse) { if (matcher.match(pattern, declaration.getQualifiedName())) { useServerSide = true; break; } } return useServerSide; }
classes2sources.put(foundEntry.getKey(), apiImport.isSeekSource() ? foundEntry.getValue() : null); else if (matcher.isPattern(pattern) && matcher.match(pattern, foundEntry.getKey())) { this.enunciate.debug("Class %s will be imported because it matches pattern %s.", foundEntry.getKey(), pattern); imported |= !classes2sources.containsKey(foundEntry.getKey());
if (pathMatcher.match(includePattern, absolutePath)) { debug("Library '%s' passed the include filter. It matches pattern '%s'.", libFile.getAbsolutePath(), includePattern); includedLibs.add(libFile); if (pathMatcher.match(pattern, absolutePath)) { exclude = true; debug("%s was excluded because it matches pattern '%s'", toBeIncluded, pattern);
if (matcher.match(includePattern, typeDeclaration.getQualifiedName())) { include = true; debug("%s matches include pattern %s.", typeDeclaration.getQualifiedName(), includePattern);
if (matcher.match(excludePattern, typeDeclaration.getQualifiedName())) { exclude = true; debug("%s matches exclude pattern %s.", typeDeclaration.getQualifiedName(), excludePattern);