Constructor and Description |
---|
ReplacerImpl()
Creates a replacer.
|
Modifier and Type | Method and Description |
---|---|
String |
replace(String line,
Replacements replacements,
Context context)
Replaces the variables in the specified line by their values.
|
public String replace(String line, Replacements replacements, Context context) throws ReplacementException
Replacer
Replaces the variables in the specified line by their values.
replace
in interface Replacer
line
- The line containing the variables.replacements
- The replacements.context
- The context.ReplacementException
- If an error occurs during the replacement.Copyright © 2015–2019. All rights reserved.