public class EnvironmentVariableProcessor extends Object implements SpecialVariableProcessor
| Constructor and Description |
|---|
EnvironmentVariableProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Value |
getVariable(String varName,
PreprocessorContext context)
Get the value for the variable
|
String[] |
getVariableNames()
Get all variable names allowed by the processor as an array, all names must
be in lower case
|
void |
setVariable(String varName,
Value value,
PreprocessorContext context)
Set a value to the variable
|
public String[] getVariableNames()
SpecialVariableProcessorgetVariableNames in interface SpecialVariableProcessorpublic Value getVariable(String varName, PreprocessorContext context)
SpecialVariableProcessorgetVariable in interface SpecialVariableProcessorvarName - the variable name, must not be nullcontext - the preprocessor context, it can be nullpublic void setVariable(String varName, Value value, PreprocessorContext context)
SpecialVariableProcessorsetVariable in interface SpecialVariableProcessorvarName - the variable name, must not be nullvalue - the value to be set to the variable, must not be nullcontext - the preprocessor context, it can be nullCopyright © 2011–2019 Igor Maznitsa. All rights reserved.