cmDependsJava.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. public:
  17. /** Checking instances need to know the build directory name and the
  18. relative path from the build directory to the target file. */
  19. cmDependsJava();
  20. /** Virtual destructor to cleanup subclasses properly. */
  21. ~cmDependsJava() override;
  22. cmDependsJava(cmDependsJava const&) = delete;
  23. cmDependsJava& operator=(cmDependsJava const&) = delete;
  24. protected:
  25. // Implement writing/checking methods required by superclass.
  26. bool WriteDependencies(const std::set<std::string>& sources,
  27. const std::string& file, std::ostream& makeDepends,
  28. std::ostream& internalDepends) override;
  29. bool CheckDependencies(
  30. std::istream& internalDepends, const std::string& internalDependsFileName,
  31. std::map<std::string, DependencyVector>& validDeps) override;
  32. };
  33. #endif