Interface EscapeHandler

All Known Implementing Classes:
EscapeHandler.Default

public interface EscapeHandler
  • Method Details

    • handleEscapedChar

      void handleEscapedChar​(char escapedChar, VarString literalBuilder)
    • needsEscaping

      boolean needsEscaping​(char chr)
    • transformEscapedChar

      char transformEscapedChar​(char chr)
      Transforms the given character on demand. Following escaped characters are transformed:
      • '\t' -> 't'
      • '\b' -> 'b'
      • '\n' -> 'n'
      • '\r' -> 'r'
      • '\f' -> 'f'
      If no transformation is needed, the same character value is returned.
      Parameters:
      chr - the character to uneescape
      Returns:
      the unescaped value
    • unescape

      char unescape​(char chr)
    • parseCharacter

      static char parseCharacter​(String c, char escapeCharacter)