All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.classdump.luna.standalone.Constants Maven / Gradle / Ivy

/*
 * Copyright 2016 Miroslav Janíček
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.classdump.luna.standalone;

abstract class Constants {

	/**
	 * Version reported in the version string.
	 */
	public static final String VERSION = "0.1-SNAPSHOT";

	/**
	 * Default prompt for the first input line in interactive mode.
	 */
	public static final String DEFAULT_PROMPT = "> ";

	/**
	 * Default prompt for multi-line inputs in interactive mode.
	 */
	public static final String DEFAULT_PROMPT2 = ">> ";


	/**
	 * Variable name used to look up the first input line prompt in interactive mode.
	 */
	public static final String VAR_NAME_PROMPT = "_PROMPT";

	/**
	 * Variable name used to look up the prompt for multi-line inputs in interactive mode.
	 */
	public static final String VAR_NAME_PROMPT2 = "_PROMPT2";

	/**
	 * Name of an environment variable containing an init script to be executed before
	 * any other Lua code when defined.
	 *
	 * 

This is the first such variable to be tested; when not defined, * {@link #ENV_INIT_SECOND} will be tried.

*/ public static final String ENV_INIT_FIRST = "LUA_INIT_5_3"; /** * Name of an environment variable containing an init script to be executed before * any other Lua code when defined. * *

This environment variable is tried only when {@link #ENV_INIT_FIRST} * is not defined.

*/ public static final String ENV_INIT_SECOND = "LUA_INIT"; /** * Name of the environment variable controlling the stack traceback format. * *

When the variable is defined, the console will print the full traceback * on errors; otherwise, the traceback will be filtered for better readability.

*/ public static final String ENV_FULL_TRACEBACK = "LUNA_FULL_TRACEBACK"; /** * Name of the environment variable controlling the CPU accounting mode used for * compiling Lua functions. * *

When the variable is defined, CPU accounting mode will be set to * {@link org.classdump.luna.compiler.CompilerSettings.CPUAccountingMode#IN_EVERY_BASIC_BLOCK}; * otherwise, it will be set to * {@link org.classdump.luna.compiler.CompilerSettings.CPUAccountingMode#NO_CPU_ACCOUNTING}.

*/ public static final String ENV_CPU_ACCOUNTING = "LUNA_CPU_ACCOUNTING"; /** * Name of the environment variable used by the module library to load Java modules. * *

When the variable is defined, it is split into URLs around the character * {@code ':'}. The URLs are then used to initialise a module class loader. * Otherwise, no module class loader will be used.

*/ public static final String ENV_MODULE_CLASSPATH = "CLASSPATH"; /** * Name of the environment variable used to control the REPL verbosity. * *

When the variable is defined, the console will print diagnostic messages to * standard error.

*/ public static final String ENV_VERBOSE = "LUNA_VERBOSE"; /** * File name used for chunks read from the standard input. */ public static final String SOURCE_STDIN = "stdin"; /** * File name used for chunks read from the command line. */ public static final String SOURCE_COMMAND_LINE = "(command line)"; private Constants() { // not to be instantiated or extended } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy