Package io.protostuff.compiler
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 void
addFilesByExtension
(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 Writer
newWriter
(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
Returns a list of file filtered by their file types/extensions; (E.g ".proto") -
addFilesByExtension
-