public class TokenReplacer extends Object implements StringProcessor
| Modifier and Type | Field and Description | 
|---|---|
| static char | ESCAPEThe escape character. | 
| static String | OPTION_PREFIXThe prefix for an option token. | 
| static char | PREFIX_SEPARATORThe separator between prefix and key. | 
| static char | TOKEN_ENDThe character ending a token. | 
| static char | TOKEN_START_1First character of a Token start. | 
| static char | TOKEN_START_2Second character of a Token start. | 
| Constructor and Description | 
|---|
| TokenReplacer(ControllerState controllerState) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | process(String toProcess)Resolves all Tokens ${option:optionName} and replaces them with the
 appropriate value. | 
public static final char TOKEN_START_1
public static final char TOKEN_START_2
public static final char TOKEN_END
public static final char ESCAPE
public static final String OPTION_PREFIX
public static final char PREFIX_SEPARATOR
public TokenReplacer(ControllerState controllerState)
controllerState - to init the token replacerpublic String process(String toProcess)
process in interface StringProcessortoProcess - the String to remove tokens from, or null.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.