Class SwiftTarget


  • public class SwiftTarget
    extends Target
    • Field Detail

      • targetCharValueEscape

        protected static final Map<Character,​String> targetCharValueEscape
      • reservedWords

        protected static final HashSet<String> reservedWords
    • Constructor Detail

    • Method Detail

      • getTargetCharValueEscape

        public Map<Character,​String> getTargetCharValueEscape()
        Description copied from class: Target
        For pure strings of Unicode char, how can we display it in the target language as a literal. Useful for dumping predicates and such that may refer to chars that need to be escaped when represented as strings. Also, templates need to be escaped so that the target language can hold them as a string. Each target can have a different set in memory at same time.
        Overrides:
        getTargetCharValueEscape in class Target