Class UnicodeAwarePostProcessor

  • All Implemented Interfaces:
    org.eclipse.xtext.generator.IFilePostProcessor, org.eclipse.xtext.generator.IFilePostProcessorExtension

    public class UnicodeAwarePostProcessor
    extends org.eclipse.xtext.xbase.compiler.output.TraceAwarePostProcessor
    implements org.eclipse.xtext.generator.IFilePostProcessorExtension
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.CharSequence postProcess​(org.eclipse.emf.common.util.URI fileURI, java.lang.CharSequence content, java.nio.charset.Charset targetCharset)  
      protected java.lang.String replaceLineSeparatorsAndEscapeChars​(java.lang.CharSequence content, java.lang.String newLineSeparator, java.nio.charset.CharsetEncoder encoder)  
      • Methods inherited from class org.eclipse.xtext.xbase.compiler.output.TraceAwarePostProcessor

        postProcess
      • Methods inherited from class org.eclipse.xtext.generator.LineSeparatorHarmonizer

        getWhitespaceInformationProvider, replaceLineSeparators
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnicodeAwarePostProcessor

        public UnicodeAwarePostProcessor()
    • Method Detail

      • postProcess

        public java.lang.CharSequence postProcess​(org.eclipse.emf.common.util.URI fileURI,
                                                  java.lang.CharSequence content,
                                                  java.nio.charset.Charset targetCharset)
        Specified by:
        postProcess in interface org.eclipse.xtext.generator.IFilePostProcessorExtension
      • replaceLineSeparatorsAndEscapeChars

        protected java.lang.String replaceLineSeparatorsAndEscapeChars​(java.lang.CharSequence content,
                                                                       java.lang.String newLineSeparator,
                                                                       java.nio.charset.CharsetEncoder encoder)