Class MetadataGeneratorUtil
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.meta.MetadataGeneratorUtil
-
public final class MetadataGeneratorUtil extends java.lang.ObjectClass which handles all the metadata generation and writing calls.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateMetadataGeneratorUtil()Stop instances being created.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voiddumpMetadata(Checker checker, java.lang.String path, java.lang.String... moduleFolders)Process files using the checker passed and write to corresponding XML files.static voidgenerate(java.lang.String path, java.lang.String... moduleFolders)Generate metadata from the module source files available in the input argument path.
-
-
-
Method Detail
-
generate
public static void generate(java.lang.String path, java.lang.String... moduleFolders) throws java.io.IOException, CheckstyleExceptionGenerate metadata from the module source files available in the input argument path.- Parameters:
path- argumentsmoduleFolders- folders to check- Throws:
java.io.IOException- ioExceptionCheckstyleException- checkstyleException
-
dumpMetadata
private static void dumpMetadata(Checker checker, java.lang.String path, java.lang.String... moduleFolders) throws CheckstyleException, java.io.IOException
Process files using the checker passed and write to corresponding XML files.- Parameters:
moduleFolders- folders to checkchecker- checkerpath- rootPath- Throws:
CheckstyleException- checkstyleExceptionjava.io.IOException- ioException
-
-