public final class VariableExpander extends Object
Constructor and Description |
---|
VariableExpander()
Creates an empty variable expander.
|
VariableExpander(Map<String,String> map)
Creates a variable expander, initialized to the given map.
|
VariableExpander(Properties variables)
Creates a variable expander, initialized to the given properties object.
|
Modifier and Type | Method and Description |
---|---|
String |
expand(String str)
Expands the macros in the given string.
|
void |
put(String variable,
String value)
Adds a new variable
|
public VariableExpander()
public VariableExpander(Map<String,String> map)
map
- the map of variablespublic VariableExpander(Properties variables)
variables
- the map of variablesCopyright © 2016 Actian Corporation. All rights reserved.