org.eclipse.xtext.parsetree.reconstr.impl
Class WriterTokenStream

java.lang.Object
  extended by org.eclipse.xtext.formatting.impl.AbstractTokenStream
      extended by org.eclipse.xtext.parsetree.reconstr.impl.WriterTokenStream
All Implemented Interfaces:
ITokenStream, ITokenStreamExtension

public class WriterTokenStream
extends AbstractTokenStream

Author:
Jan Koehnlein - Initial contribution and API

Constructor Summary
WriterTokenStream(java.io.Writer out)
           
 
Method Summary
 void flush()
           
 void writeHidden(org.eclipse.emf.ecore.EObject grammarElement, java.lang.String value)
           
 void writeSemantic(org.eclipse.emf.ecore.EObject grammarElement, java.lang.String value)
           
 
Methods inherited from class org.eclipse.xtext.formatting.impl.AbstractTokenStream
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriterTokenStream

public WriterTokenStream(java.io.Writer out)
Method Detail

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface ITokenStream
Overrides:
flush in class AbstractTokenStream
Throws:
java.io.IOException

writeHidden

public void writeHidden(org.eclipse.emf.ecore.EObject grammarElement,
                        java.lang.String value)
                 throws java.io.IOException
Specified by:
writeHidden in interface ITokenStream
Overrides:
writeHidden in class AbstractTokenStream
Throws:
java.io.IOException

writeSemantic

public void writeSemantic(org.eclipse.emf.ecore.EObject grammarElement,
                          java.lang.String value)
                   throws java.io.IOException
Specified by:
writeSemantic in interface ITokenStream
Overrides:
writeSemantic in class AbstractTokenStream
Throws:
java.io.IOException