/plugins/PHPParser/trunk/src/gatchan/phpparser/project/itemfinder/PHPItem.java

#
Java | 64 lines | 24 code | 11 blank | 29 comment | 0 complexity | 9ee5a9687ba62503f1f4f8dad5099eca MD5 | raw file

✨ Summary
  1. /*
  2. * PHPItem.java
  3. * :tabSize=8:indentSize=8:noTabs=false:
  4. * :folding=explicit:collapseFolds=1:
  5. *
  6. * Copyright (C) 2003-2010 Matthieu Casanova
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * as published by the Free Software Foundation; either version 2
  11. * of the License, or any later version.
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  20. */
  21. package gatchan.phpparser.project.itemfinder;
  22. import javax.swing.*;
  23. /**
  24. * @author Matthieu Casanova
  25. */
  26. public interface PHPItem
  27. {
  28. int CLASS = 1;
  29. int METHOD = 2;
  30. int FIELD = 4;
  31. int INTERFACE = 8;
  32. int DOCUMENT = 16;// special type for document
  33. int DEFINE = 32;
  34. int GLOBAL = 64;
  35. int INCLUDE = 128;
  36. int VARIABLE = 256;
  37. int CLASS_CONSTANT = 512;
  38. int getItemType();
  39. String getName();
  40. /**
  41. * Returns the name of the item in lower case.
  42. * It will be used to quick find items
  43. *
  44. * @return the name in lower case
  45. */
  46. String getNameLowerCase();
  47. int getSourceStart();
  48. int getBeginLine();
  49. int getBeginColumn();
  50. String getPath();
  51. Icon getIcon();
  52. String getNamespace();
  53. }