cmDependsJava.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmDependsJava_h
  4. #define cmDependsJava_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmDepends.h"
  7. #include <iosfwd>
  8. #include <map>
  9. #include <set>
  10. #include <string>
  11. /** \class cmDependsJava
  12. * \brief Dependency scanner for Java class files.
  13. */
  14. class cmDependsJava : public cmDepends
  15. {
  16. CM_DISABLE_COPY(cmDependsJava)
  17. public:
  18. /** Checking instances need to know the build directory name and the
  19. relative path from the build directory to the target file. */
  20. cmDependsJava();
  21. /** Virtual destructor to cleanup subclasses properly. */
  22. ~cmDependsJava() override;
  23. protected:
  24. // Implement writing/checking methods required by superclass.
  25. bool WriteDependencies(const std::set<std::string>& sources,
  26. const std::string& file, std::ostream& makeDepends,
  27. std::ostream& internalDepends) override;
  28. bool CheckDependencies(
  29. std::istream& internalDepends, const char* internalDependsFileName,
  30. std::map<std::string, DependencyVector>& validDeps) override;
  31. };
  32. #endif