@API(type=NOT_EXTENDABLE,
src=PRIVATE)
public class EditorVariablesBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CT_CARET_EDITOR_VARIABLE
The caret editor variable.
|
static java.lang.String |
CT_SELECTION_EDITOR_VARIABLE
The caret editor variable.
|
static java.lang.String |
DATE_FUNCTION_SAMPLE
Sample of date function specification
|
static java.lang.String |
EDITOR_VARIABLES_PREFIX
The editor variables prefix.
|
static java.lang.String |
EDITOR_VARIABLES_SUFIX
The editor variables sufix.
|
static java.lang.String |
ENV_FUNCTION_SAMPLE
Sample of environment function specification
|
static java.lang.String |
ENV_FUNCTION_VARIABLE_PREFIX
Prefix for environment functions.
|
static java.lang.String |
ENV_VAR_NAME
ENV var name
|
static java.lang.String |
FUNCTION_VARIABLE_SUFFIX
Suffix for functions (env or system)
|
static java.lang.String |
PATH_SEPARATOR
Path separator editor variable.
|
static java.lang.String |
SYSTEM_FUNCTION_SAMPLE
Sample of system function specification
|
static java.lang.String |
SYSTEM_FUNCTION_VARIABLE_PREFIX
Prefix for system functions.
|
static java.lang.String |
SYSTEM_VAR_NAME
SYSTEM var name
|
static java.lang.String |
TIMESTAMP
The time stamp.
|
static java.lang.String |
USER_HOME_DIR
The user home dir editor variable.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
expandEnvAndSystem(java.lang.String expr)
Expand the environment and system variables.
|
static java.lang.String |
replaceFunctions(java.lang.String expr,
java.lang.String functionVariablePrefix,
java.lang.String functionVariableSuffix,
EditorVariables.FunctionResolver keyToValueMap)
Replace all functions with the value taken from the map corresponding to the key
|
public static final java.lang.String EDITOR_VARIABLES_PREFIX
public static final java.lang.String EDITOR_VARIABLES_SUFIX
public static final java.lang.String FUNCTION_VARIABLE_SUFFIX
public static final java.lang.String SYSTEM_FUNCTION_VARIABLE_PREFIX
public static final java.lang.String ENV_FUNCTION_VARIABLE_PREFIX
public static final java.lang.String ENV_VAR_NAME
public static final java.lang.String SYSTEM_VAR_NAME
public static final java.lang.String ENV_FUNCTION_SAMPLE
public static final java.lang.String SYSTEM_FUNCTION_SAMPLE
public static final java.lang.String DATE_FUNCTION_SAMPLE
public static final java.lang.String TIMESTAMP
${timeStamp}
.public static final java.lang.String PATH_SEPARATOR
${ps}
.public static final java.lang.String USER_HOME_DIR
${homeDir}
.public static final java.lang.String CT_CARET_EDITOR_VARIABLE
public static final java.lang.String CT_SELECTION_EDITOR_VARIABLE
public static java.lang.String expandEnvAndSystem(java.lang.String expr)
expr
- The expression containing environment and system variables.public static java.lang.String replaceFunctions(java.lang.String expr, java.lang.String functionVariablePrefix, java.lang.String functionVariableSuffix, EditorVariables.FunctionResolver keyToValueMap)
expr
- The expression to modify.functionVariablePrefix
- Prefix of function signature.functionVariableSuffix
- Suffix of function signature.keyToValueMap
- Map between keys and values.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.