Klasse TokenReplacer
java.lang.Object
org.apache.torque.generator.control.TokenReplacer
- Alle implementierten Schnittstellen:
StringProcessor
Replaces placeholder tokens like ${option:optionName} in a string by the
resolved values. The escape character is the backslash (\).
$Id: TokenReplacer.java 1917241 2024-04-21 13:29:41Z tv $
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final char
The escape character.static final String
The prefix for an option token.static final char
The separator between prefix and key.static final char
The character ending a token.static final char
First character of a Token start.static final char
Second character of a Token start. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Felddetails
-
TOKEN_START_1
public static final char TOKEN_START_1First character of a Token start.- Siehe auch:
-
TOKEN_START_2
public static final char TOKEN_START_2Second character of a Token start.- Siehe auch:
-
TOKEN_END
public static final char TOKEN_ENDThe character ending a token.- Siehe auch:
-
ESCAPE
public static final char ESCAPEThe escape character.- Siehe auch:
-
OPTION_PREFIX
The prefix for an option token.- Siehe auch:
-
PREFIX_SEPARATOR
public static final char PREFIX_SEPARATORThe separator between prefix and key.- Siehe auch:
-
-
Konstruktordetails
-
TokenReplacer
- Parameter:
controllerState
- to init the token replacer
-
-
Methodendetails
-
process
Resolves all Tokens ${option:optionName} and replaces them with the appropriate value.- Angegeben von:
process
in SchnittstelleStringProcessor
- Parameter:
toProcess
- the String to remove tokens from, or null.- Gibt zurück:
- the processed String.
-