public class StringMacroCombiner extends Object implements MacroCombiner<String>
MacroReplacer<String>
that just concatenates the strings and
expanded macros.Constructor and Description |
---|
StringMacroCombiner() |
Modifier and Type | Method and Description |
---|---|
void |
add(String expandedMacro)
Add the expanded form of a macro.
|
void |
addString(String part)
Add a non-macro containing substring.
|
String |
build()
Returns the combined result.
|
public String build()
MacroCombiner
build
in interface MacroCombiner<String>
public void addString(String part)
MacroCombiner
addString
in interface MacroCombiner<String>
public void add(String expandedMacro)
MacroCombiner
add
in interface MacroCombiner<String>