Interface EscapeHandler

All Known Implementing Classes:
EscapeHandler.Default

public interface EscapeHandler
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  EscapeHandler.Default  
  • Method Summary

    Modifier and Type Method Description
    void handleEscapedChar​(char escapedChar, VarString literalBuilder)  
    boolean needsEscaping​(char chr)  
    static char parseCharacter​(String c, char escapeCharacter)  
    char transformEscapedChar​(char chr)
    Contract: if no transformation is needed, the same character value is returned.
    char unescape​(char chr)  
  • Method Details

    • handleEscapedChar

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

      boolean needsEscaping​(char chr)
    • transformEscapedChar

      char transformEscapedChar​(char chr)
      Contract: if no transformation is needed, the same character value is returned. TO DO: proper JavDoc
      Parameters:
      chr -
    • unescape

      char unescape​(char chr)
    • parseCharacter

      static char parseCharacter​(String c, char escapeCharacter)