Package org.apache.torque.generator.processor.string

# Klasse WrapReservedJavaWords

java.lang.Object
org.apache.torque.generator.processor.string.WrapReservedJavaWords

Alle implementierten Schnittstellen:
  `StringProcessor`

public class WrapReservedJavaWords extends Object implements StringProcessor
Processes an input String as follows: If the input String is a reserved word in java, a suffix and/or prefix is appended to the input String and the result is returned; otherwise the input string is returned unchanged.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `WrapReservedJavaWords()`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `String`
  `process(String toProcess)`
  Checks whether the input is a reserved java word.
  `void`
  `setAppendWhenReserved(String suffix)`
  Sets the suffix to be appended if the input is a reserved word.
  `void`
  `setPrependWhenReserved(String prefix)`
  Sets the prefix to be prepended if the input is a reserved word.

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

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

- ## Konstruktordetails

  - ### WrapReservedJavaWords

    public WrapReservedJavaWords()

- ## Methodendetails

  - ### setPrependWhenReserved

    public void setPrependWhenReserved(String prefix)
    Sets the prefix to be prepended if the input is a reserved word.
    Parameter:
      `prefix` - the new prefix, not null.
    Löst aus:
      `NullPointerException` - if prefix is null.

  - ### setAppendWhenReserved

    public void setAppendWhenReserved(String suffix)
    Sets the suffix to be appended if the input is a reserved word.
    Parameter:
      `suffix` - the new suffix, not null.
    Löst aus:
      `NullPointerException` - if suffix is null.

  - ### process

    public String process(String toProcess)
    Checks whether the input is a reserved java word. If yes, prefix and suffix are prepended and appended, and the result is returned. If no, the input is returned unchanged.
    Angegeben von:
      `process` in Schnittstelle `StringProcessor`
    Parameter:
      `toProcess` - the input.
    Gibt zurück:
      the output.