Class AbstractParseTreeConstructor.WsMergerStream
- java.lang.Object
-
- org.eclipse.xtext.parsetree.reconstr.impl.AbstractParseTreeConstructor.WsMergerStream
-
- Enclosing class:
- AbstractParseTreeConstructor
protected class AbstractParseTreeConstructor.WsMergerStream extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ICompositeNodelastCompositeNodeprotected intlastIndexprotected HiddenAndTokenNodeIteratornodeIteratorprotected ITokenStreamout
-
Constructor Summary
Constructors Constructor Description WsMergerStream(ITokenStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()voidinit(ParserRule parseRule)voidwriteComment(ILeafNode comment)voidwriteSemantic(AbstractElement grammarElement, java.lang.String value, INode node)protected voidwriteWhitespacesSince(INode node)
-
-
-
Field Detail
-
lastCompositeNode
protected ICompositeNode lastCompositeNode
-
lastIndex
protected int lastIndex
-
out
protected ITokenStream out
-
nodeIterator
@Inject protected HiddenAndTokenNodeIterator nodeIterator
-
-
Constructor Detail
-
WsMergerStream
public WsMergerStream(ITokenStream out)
-
-
Method Detail
-
flush
public void flush() throws java.io.IOException- Throws:
java.io.IOException
-
writeComment
public void writeComment(ILeafNode comment) throws java.io.IOException
- Throws:
java.io.IOException
-
writeSemantic
public void writeSemantic(AbstractElement grammarElement, java.lang.String value, INode node) throws java.io.IOException
- Throws:
java.io.IOException
-
init
public void init(ParserRule parseRule)
- Since:
- 2.0
-
writeWhitespacesSince
protected void writeWhitespacesSince(INode node) throws java.io.IOException
- Throws:
java.io.IOException
-
-