Class MetadataGeneratorUtil
java.lang.Object
com.puppycrawl.tools.checkstyle.meta.MetadataGeneratorUtil
Class which handles all the metadata generation and writing calls.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
dumpMetadata
(Checker checker, String path, String... moduleFolders) Process files using the checker passed and write to corresponding XML files.static void
Generate metadata from the module source files available in the input argument path.
-
Constructor Details
-
MetadataGeneratorUtil
private MetadataGeneratorUtil()Stop instances being created.
-
-
Method Details
-
generate
public static void generate(String path, String... moduleFolders) throws IOException, CheckstyleException Generate metadata from the module source files available in the input argument path.- Parameters:
path
- argumentsmoduleFolders
- folders to check- Throws:
IOException
- ioExceptionCheckstyleException
- checkstyleException
-
dumpMetadata
private static void dumpMetadata(Checker checker, String path, String... moduleFolders) throws CheckstyleException, IOException Process files using the checker passed and write to corresponding XML files.- Parameters:
checker
- checkerpath
- rootPathmoduleFolders
- folders to check- Throws:
CheckstyleException
- checkstyleExceptionIOException
- ioException
-