org.eclipse.xtext.formatting.impl
Class AbstractTokenStream
java.lang.Object
org.eclipse.xtext.formatting.impl.AbstractTokenStream
- All Implemented Interfaces:
- ITokenStream, ITokenStreamExtension
- Direct Known Subclasses:
- BaseTokenStream, TokenStringBuffer, WriterTokenStream
public abstract class AbstractTokenStream
- extends java.lang.Object
- implements ITokenStreamExtension
- Author:
- Moritz Eysholdt - Initial contribution and API
Method Summary |
void |
flush()
|
void |
init(ParserRule startRule)
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTokenStream
public AbstractTokenStream()
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in interface ITokenStream
- 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
- 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
- Throws:
java.io.IOException
init
public void init(ParserRule startRule)
- Specified by:
init
in interface ITokenStreamExtension
- Since:
- 2.0