Package org.apache.torque.generator.control

# Klasse TokenReplacer

java.lang.Object
org.apache.torque.generator.control.TokenReplacer

Alle implementierten Schnittstellen:
  `StringProcessor`

public class TokenReplacer extends Object implements 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

  Felder
  Modifizierer und Typ
  Feld
  Beschreibung
  `static final char`
  `ESCAPE`
  The escape character.
  `static final String`
  `OPTION_PREFIX`
  The prefix for an option token.
  `static final char`
  `PREFIX_SEPARATOR`
  The separator between prefix and key.
  `static final char`
  `TOKEN_END`
  The character ending a token.
  `static final char`
  `TOKEN_START_1`
  First character of a Token start.
  `static final char`
  `TOKEN_START_2`
  Second character of a Token start.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `TokenReplacer(ControllerState controllerState)`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `String`
  `process(String toProcess)`
  Resolves all Tokens ${option:optionName} and replaces them with the appropriate value.

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Felddetails

  - ### TOKEN_START_1

    public static final char TOKEN_START_1
    First character of a Token start.
    Siehe auch:
      - Konstantenfeldwerte

  - ### TOKEN_START_2

    public static final char TOKEN_START_2
    Second character of a Token start.
    Siehe auch:
      - Konstantenfeldwerte

  - ### TOKEN_END

    public static final char TOKEN_END
    The character ending a token.
    Siehe auch:
      - Konstantenfeldwerte

  - ### ESCAPE

    public static final char ESCAPE
    The escape character.
    Siehe auch:
      - Konstantenfeldwerte

  - ### OPTION_PREFIX

    public static final String OPTION_PREFIX
    The prefix for an option token.
    Siehe auch:
      - Konstantenfeldwerte

  - ### PREFIX_SEPARATOR

    public static final char PREFIX_SEPARATOR
    The separator between prefix and key.
    Siehe auch:
      - Konstantenfeldwerte

- ## Konstruktordetails

  - ### TokenReplacer

    public TokenReplacer(ControllerState controllerState)
    Parameter:
      `controllerState` - to init the token replacer

- ## Methodendetails

  - ### process

    public String process(String toProcess)
    Resolves all Tokens ${option:optionName} and replaces them with the appropriate value.
    Angegeben von:
      `process` in Schnittstelle `StringProcessor`
    Parameter:
      `toProcess` - the String to remove tokens from, or null.
    Gibt zurück:
      the processed String.