From 914f4db513477d9aff726546bac47545195a3e37 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 16 Nov 2017 13:38:56 +0200 Subject: Rename "Visual Studio" to "Visual_Studio" Rename "External Repositories" to "External_Repositories". --- .../Tango.Protobuf/Compilers/JavaCompiler.cs | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Software/Visual_Studio/Tango.Protobuf/Compilers/JavaCompiler.cs (limited to 'Software/Visual_Studio/Tango.Protobuf/Compilers/JavaCompiler.cs') 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..55f0cf77f --- /dev/null +++ b/Software/Visual_Studio/Tango.Protobuf/Compilers/JavaCompiler.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Core.Helpers; +using Tango.Logging; + +namespace Tango.Protobuf.Compilers +{ + /// + /// Represents a protobuf Java Compiler. + /// + /// + public class JavaCompiler : ProtoCompiler + { + /// + /// Gets the compiler language. + /// + public override CompilerLanguage Language => CompilerLanguage.Java; + + /// + /// Gets the protobuf compiler CLI arguments (without input/output files!). + /// + /// + protected override string GetProtoArguments() + { + return "--java_out"; + } + + /// + /// Gets a value indicating whether this compiler uses the default folder structure when generating code. + /// + public override bool UsesDefaultStructure => true; + } +} -- cgit v1.3.1