org.eclipse.xtext.xbase.compiler.output
Class TraceAwarePostProcessor

java.lang.Object
  extended by org.eclipse.xtext.generator.LineSeparatorHarmonizer
      extended by org.eclipse.xtext.xbase.compiler.output.TraceAwarePostProcessor
All Implemented Interfaces:
IFilePostProcessor

@NonNullByDefault
public class TraceAwarePostProcessor
extends LineSeparatorHarmonizer

Specializes the LineSeparatorHarmonizer and is aware of TreeAppendable thus it can harmonize the line breaks and still maintain the trace information.

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
TraceAwarePostProcessor()
           
 
Method Summary
 java.lang.CharSequence postProcess(org.eclipse.emf.common.util.URI fileURI, java.lang.CharSequence content)
           
 
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

TraceAwarePostProcessor

public TraceAwarePostProcessor()
Method Detail

postProcess

public java.lang.CharSequence postProcess(org.eclipse.emf.common.util.URI fileURI,
                                          java.lang.CharSequence content)
Specified by:
postProcess in interface IFilePostProcessor
Overrides:
postProcess in class LineSeparatorHarmonizer