public enum DslCompiler extends Enum<DslCompiler> implements CompileParameter, ParameterParser
| Modifier and Type | Class and Description |
|---|---|
static class |
DslCompiler.ParseError |
static class |
DslCompiler.ParseResult |
static class |
DslCompiler.RuleInfo |
static class |
DslCompiler.SyntaxConcept |
static class |
DslCompiler.SyntaxType |
static class |
DslCompiler.TokenParser |
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(Context context) |
static void |
checkForLatestVersion(Context context,
File path,
File compilerPath,
File compiler) |
static Map<String,String> |
compile(Context context,
String target,
List<String> settings,
String namespace,
String version,
DatabaseInfo dbInfo,
List<File> dsls,
String library,
String configuration) |
String |
getAlias() |
String |
getDetailedDescription() |
String |
getShortDescription() |
String |
getUsage() |
static File |
lookupDefaultPath(Context context) |
static Either<String> |
migration(Context context,
DatabaseInfo dbInfo,
List<File> currentDsls) |
static Either<Boolean> |
parse(Context context,
List<File> dsls) |
void |
run(Context context) |
static Either<DslCompiler.TokenParser> |
setupServer(Context context,
File compiler) |
Either<Boolean> |
tryParse(String name,
String value,
Context context) |
static DslCompiler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DslCompiler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DslCompiler INSTANCE
public static DslCompiler[] values()
for (DslCompiler c : DslCompiler.values()) System.out.println(c);
public static DslCompiler valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getAlias()
getAlias in interface CompileParameterpublic String getUsage()
getUsage in interface CompileParameterpublic static Map<String,String> compile(Context context, String target, List<String> settings, String namespace, String version, DatabaseInfo dbInfo, List<File> dsls, String library, String configuration) throws ExitException
ExitExceptionpublic static Either<DslCompiler.TokenParser> setupServer(Context context, File compiler)
public static Either<String> migration(Context context, DatabaseInfo dbInfo, List<File> currentDsls) throws ExitException
ExitExceptionpublic static Either<Boolean> parse(Context context, List<File> dsls) throws ExitException
ExitExceptionpublic static File lookupDefaultPath(Context context) throws ExitException
ExitExceptionpublic Either<Boolean> tryParse(String name, String value, Context context)
tryParse in interface ParameterParserpublic boolean check(Context context) throws ExitException
check in interface CompileParameterExitExceptionpublic static void checkForLatestVersion(Context context, File path, File compilerPath, File compiler) throws ExitException
ExitExceptionpublic void run(Context context)
run in interface CompileParameterpublic String getShortDescription()
getShortDescription in interface CompileParameterpublic String getDetailedDescription()
getDetailedDescription in interface CompileParameterCopyright © 2021. All rights reserved.