1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

134 lines
3.7 KiB
C#
Raw Normal View History

2011-02-12 19:47:18 +01:00
/*
Copyright 2010,2011 Kevin Glynn (kevin.glynn@twigletsoftware.com)
*/
using System;
using System.Collections.Generic;
2011-02-12 19:47:18 +01:00
using Twiglet.CS2J.Translator.Utils;
using System.IO;
2011-02-12 19:47:18 +01:00
namespace Twiglet.CS2J.Translator
{
public class CS2JSettings
{
public bool DisplayTokens { get; set; }
// dump parse trees to stdout
public bool DumpCSharp { get; set; }
public bool DumpJavaSyntax { get; set; }
public bool DumpJava { get; set; }
public bool DumpXmls { get; set; }
public bool DumpEnums { get; set; }
public string OutDir { get; set; }
public string CheatDir { get; set; }
public IList<string> NetRoot { get; set; }
public IList<string> ExNetRoot { get; set; }
public IList<string> AppRoot { get; set; }
public IList<string> ExAppRoot { get; set; }
public IList<string> Exclude { get; set; }
public IList<string> MacroDefines { get; set; }
public string XmlDir { get; set; }
public string EnumDir { get; set; }
public int Verbosity { get; set; }
public string KeyFile { get; set; }
2011-01-12 13:44:36 +01:00
public bool DebugTemplateExtraction { get; set; }
public int DebugLevel { get; set; }
public bool Warnings { get; set; }
public bool WarningsFailedResolves { get; set; }
public bool TranslatorKeepParens
{
get; set;
}
public bool TranslatorAddTimeStamp
{
get; set;
}
public bool TranslatorExceptionIsThrowable
{
get; set;
}
public bool TranslatorBlanketThrow
{
get; set;
}
public bool TranslatorMakeJavadocComments
{
get; set;
}
public bool EnumsAsNumericConsts
{
get; set;
}
public bool UnsignedNumbersToSigned
{
get; set;
}
public bool ExperimentalTransforms
{
get; set;
}
public bool InternalIsJavaish
{
get; set;
}
public CS2JSettings ()
{
DisplayTokens = false;
// dump parse trees to stdout
DumpCSharp = false;
DumpJavaSyntax = false;
DumpJava = false;
DumpXmls = false;
DumpEnums = false;
OutDir = Directory.GetCurrentDirectory();
CheatDir = "";
NetRoot = new List<string>();
ExNetRoot = new List<string>();
AppRoot = new List<string>();
ExAppRoot = new List<string>();
Exclude = new List<string>();
MacroDefines = new List<string>();
XmlDir = Path.Combine(Directory.GetCurrentDirectory(), "tmpXMLs");
EnumDir = Path.Combine(Directory.GetCurrentDirectory(), "enums");
KeyFile = null;
2011-01-12 13:44:36 +01:00
Verbosity = 0;
DebugTemplateExtraction = true;
DebugLevel = 1;
Warnings = true;
WarningsFailedResolves = false;
TranslatorKeepParens = true;
TranslatorAddTimeStamp = true;
TranslatorExceptionIsThrowable = false;
TranslatorBlanketThrow = true;
TranslatorMakeJavadocComments = true;
EnumsAsNumericConsts = false;
UnsignedNumbersToSigned = false;
ExperimentalTransforms = false;
InternalIsJavaish = false;
}
}
}