PageRenderTime 39ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-1-pre5/org/gjt/sp/jedit/search/SearchFileSet.java

#
Java | 59 lines | 10 code | 7 blank | 42 comment | 0 complexity | 58e61793ce8c367e4a6526b04aa3b8af MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. /*
  2. * SearchFileSet.java - Abstract file matcher interface
  3. * Copyright (C) 1999, 2001 Slava Pestov
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License
  7. * as published by the Free Software Foundation; either version 2
  8. * of the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. */
  19. package org.gjt.sp.jedit.search;
  20. import org.gjt.sp.jedit.*;
  21. /**
  22. * An abstract interface for matching files.
  23. * @author Slava Pestov
  24. * @version $Id: SearchFileSet.java 4199 2002-05-28 01:50:19Z spestov $
  25. */
  26. public interface SearchFileSet
  27. {
  28. /**
  29. * Returns the first file to search.
  30. * @param view The view performing the search
  31. */
  32. String getFirstFile(View view);
  33. /**
  34. * Returns the next file to search.
  35. * @param view The view performing the search
  36. * @param buffer The last file searched
  37. */
  38. String getNextFile(View view, String path);
  39. /**
  40. * Returns all path names in this file set.
  41. * @param view The view performing the search
  42. */
  43. String[] getFiles(View view);
  44. /**
  45. * Returns the number of files in this file set.
  46. */
  47. int getFileCount(View view);
  48. /**
  49. * Returns the BeanShell code that will recreate this file set.
  50. */
  51. String getCode();
  52. }