Class JsStringLiteralWriter

    • Field Detail

      • insideScriptTag

        protected boolean insideScriptTag
    • Constructor Detail

      • JsStringLiteralWriter

        public JsStringLiteralWriter​(Writer out,
                                     boolean insideScriptTag)
    • Method Detail

      • substitute

        protected String substitute​(char ch)
        Description copied from class: SubstitutingWriter
        What should be printed instead of character c? This method is always called synchronized on out. Changes to the substitution function should therefore also be synchronized on out.
        Specified by:
        substitute in class SubstitutingWriter
        Parameters:
        ch - the character
        Returns:
        the string to be printed, or null for "no change", i.e. just c