public interface Replacer
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.
|
String replace(String line, Replacements replacements, Context context) throws ReplacementException
Replaces the variables in the specified line by their values.
line
- The line containing the variables.replacements
- The replacements.context
- The context.IllegalArgumentException
- If any of the parameters are null
.ReplacementException
- If an error occurs during the replacement.Copyright © 2015–2019. All rights reserved.