Class CompilerUtil
java.lang.Object
io.protostuff.compiler.CompilerUtil
Utilities and helpers for compiling protos.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidaddFilesByExtension(List<File> list, File dir, String[] extensions) getFilesByExtension(File dir, String[] extensions) Returns a list of file filtered by their file types/extensions; (E.g ".proto")getProtoFiles(File dir) static WriternewWriter(ProtoModule module, String packageName, String fileName)
-
Constructor Details
-
CompilerUtil
public CompilerUtil()
-
-
Method Details
-
newWriter
public static Writer newWriter(ProtoModule module, String packageName, String fileName) throws IOException - Throws:
IOException
-
getProtoFiles
-
getFilesByExtension
-
addFilesByExtension
-