- java.lang.Object
-
- textadventurelib.macro.MacroSubstitutionManager
-
- All Implemented Interfaces:
IMacroManager
public class MacroSubstitutionManager extends Object implements IMacroManager
- Author:
- Jeff Riggle
-
-
Constructor Detail
-
MacroSubstitutionManager
public MacroSubstitutionManager(String prefix, String suffix, Object dataSource)
- Parameters:
prefix
- The prefix.suffix
- The suffix.dataSource
- The data source to pull from.
-
MacroSubstitutionManager
public MacroSubstitutionManager(String prefix, String suffix, String parameterPrefix, String parameterSuffix, String separator, Object dataSource)
- Parameters:
prefix
- The prefix.suffix
- The suffix.parameterPrefix
- The parameter prefix.parameterSuffix
- The parameter suffix.separator
- The separator.dataSource
- The data source to pull from.
-
-
Method Detail
-
substitute
public String substitute(String originalText)
- Specified by:
substitute
in interfaceIMacroManager
- Parameters:
originalText
- The text to perform substitutions on.- Returns:
- The substituted text.
-
-