org.eclipse.xtext.formatting.impl
Class AbstractFormatter

java.lang.Object
  extended by org.eclipse.xtext.formatting.impl.AbstractFormatter
All Implemented Interfaces:
IFormatter, IFormatterExtension
Direct Known Subclasses:
BaseFormatter, NullFormatter

public abstract class AbstractFormatter
extends java.lang.Object
implements IFormatter, IFormatterExtension

Author:
Moritz Eysholdt - Initial contribution and API

Constructor Summary
AbstractFormatter()
           
 
Method Summary
 ITokenStream createFormatterStream(org.eclipse.emf.ecore.EObject context, java.lang.String initalIndentation, ITokenStream outputStream, boolean preserveWhitespaces)
           
 ITokenStream createFormatterStream(java.lang.String initalIndentation, ITokenStream outputStream, boolean preserveWhitespaces)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFormatter

public AbstractFormatter()
Method Detail

createFormatterStream

public ITokenStream createFormatterStream(java.lang.String initalIndentation,
                                          ITokenStream outputStream,
                                          boolean preserveWhitespaces)
Specified by:
createFormatterStream in interface IFormatter

createFormatterStream

public ITokenStream createFormatterStream(org.eclipse.emf.ecore.EObject context,
                                          java.lang.String initalIndentation,
                                          ITokenStream outputStream,
                                          boolean preserveWhitespaces)
Specified by:
createFormatterStream in interface IFormatterExtension
Since:
2.3