/** * Return the matching entries for each filter in the same order the filter where passed * * @return array of Set of JarVisitor.Entry * @throws IOException if something went wrong */ public Set[] getMatchingEntries() throws IOException { if ( !done ) { //avoid url access and so on if ( filters.size() > 0 ) doProcessElements(); done = true; } return entries; }
protected AbstractJarVisitor(String fileName, Filter[] filters) { this( fileName ); initFilters( filters ); }
private AbstractJarVisitor(URL url) { jarUrl = url; unqualify(); }
boolean match = checkAnnotationMatching( is, filter ); if ( match ) { accepted = true;
name = entryName.substring( 0, entryNameLength - ".package-info.class".length() ).replace( '/', '.' ); executeJavaElementFilter( name, packageFilters, is, secondIs ); executeJavaElementFilter( name, classFilters, is, secondIs );
boolean match = checkAnnotationMatching( is, filter ); if ( match ) { accepted = true;
name = entryName.substring( 0, entryNameLength - ".package-info.class".length() ).replace( '/', '.' ); executeJavaElementFilter( name, packageFilters, is, secondIs ); executeJavaElementFilter( name, classFilters, is, secondIs );
private AbstractJarVisitor(URL url) { jarUrl = url; unqualify(); }
protected AbstractJarVisitor(URL url, Filter[] filters) { this( url ); initFilters( filters ); }
/** * Return the matching entries for each filter in the same order the filter where passed * * @return array of Set of JarVisitor.Entry * @throws IOException if something went wrong */ public Set[] getMatchingEntries() throws IOException { if ( !done ) { //avoid url access and so on if ( filters.size() > 0 ) doProcessElements(); done = true; } return entries; }
/** * Build a jar visitor from its jar string path */ private AbstractJarVisitor(String jarPath) { this.jarUrl = JarVisitorFactory.getURLFromPath( jarPath ); unqualify(); }
protected AbstractJarVisitor(URL url, Filter[] filters) { this( url ); initFilters( filters ); }
/** * Build a jar visitor from its jar string path */ private AbstractJarVisitor(String jarPath) { URL jarUrl; try { //is it an url jarUrl = new URL( jarPath ); } catch (MalformedURLException e) { try { //consider it as a file path jarUrl = new URL( "file:" + jarPath ); } catch (MalformedURLException ee) { throw new IllegalArgumentException( "Unable to find jar:" + jarPath, ee ); } } this.jarUrl = jarUrl; unqualify(); }
protected AbstractJarVisitor(String fileName, Filter[] filters) { this( fileName ); initFilters( filters ); }