aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual Studio/Tango.Protobuf/Compilers/JavaCompiler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual Studio/Tango.Protobuf/Compilers/JavaCompiler.cs')
-rw-r--r--Software/Visual Studio/Tango.Protobuf/Compilers/JavaCompiler.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/Software/Visual Studio/Tango.Protobuf/Compilers/JavaCompiler.cs b/Software/Visual Studio/Tango.Protobuf/Compilers/JavaCompiler.cs
new file mode 100644
index 000000000..78d754aa5
--- /dev/null
+++ b/Software/Visual Studio/Tango.Protobuf/Compilers/JavaCompiler.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tango.Protobuf.Compilers
+{
+ /// <summary>
+ /// Represents a protobuf Java Compiler.
+ /// </summary>
+ /// <seealso cref="Tango.Protobuf.ProtoCompiler" />
+ public class JavaCompiler : ProtoCompiler
+ {
+ /// <summary>
+ /// Gets the compiler language.
+ /// </summary>
+ public override CompilerLanguage Language => CompilerLanguage.Java;
+
+ /// <summary>
+ /// Gets the protobuf compiler CLI arguments (without input/output files!).
+ /// </summary>
+ /// <returns></returns>
+ protected override string GetProtoArguments()
+ {
+ return "--java_out";
+ }
+ }
+}