Class OneWhitespaceFormatter.OneWhitespaceFormatterStream
- java.lang.Object
-
- org.eclipse.xtext.formatting.impl.AbstractTokenStream
-
- org.eclipse.xtext.formatting.impl.BaseTokenStream
-
- org.eclipse.xtext.formatting.impl.OneWhitespaceFormatter.OneWhitespaceFormatterStream
-
- All Implemented Interfaces:
ITokenStream,ITokenStreamExtension
- Enclosing class:
- OneWhitespaceFormatter
protected class OneWhitespaceFormatter.OneWhitespaceFormatterStream extends BaseTokenStream
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanhasStartedprotected booleanpreserveWSprotected booleanwsWritten-
Fields inherited from class org.eclipse.xtext.formatting.impl.BaseTokenStream
out
-
-
Constructor Summary
Constructors Constructor Description OneWhitespaceFormatterStream(ITokenStream out, boolean preserve)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisComment(org.eclipse.emf.ecore.EObject grammarElement, java.lang.String value)voidwriteHidden(org.eclipse.emf.ecore.EObject grammarElement, java.lang.String value)voidwriteSemantic(org.eclipse.emf.ecore.EObject grammarElement, java.lang.String value)protected voidwriteSpaceIfNecessary()-
Methods inherited from class org.eclipse.xtext.formatting.impl.BaseTokenStream
flush, init
-
-
-
-
Constructor Detail
-
OneWhitespaceFormatterStream
public OneWhitespaceFormatterStream(ITokenStream out, boolean preserve)
-
-
Method Detail
-
isComment
protected boolean isComment(org.eclipse.emf.ecore.EObject grammarElement, java.lang.String value)
-
writeHidden
public void writeHidden(org.eclipse.emf.ecore.EObject grammarElement, java.lang.String value) throws java.io.IOException- Specified by:
writeHiddenin interfaceITokenStream- Overrides:
writeHiddenin classAbstractTokenStream- Throws:
java.io.IOException
-
writeSemantic
public void writeSemantic(org.eclipse.emf.ecore.EObject grammarElement, java.lang.String value) throws java.io.IOException- Specified by:
writeSemanticin interfaceITokenStream- Overrides:
writeSemanticin classAbstractTokenStream- Throws:
java.io.IOException
-
writeSpaceIfNecessary
protected void writeSpaceIfNecessary() throws java.io.IOException- Throws:
java.io.IOException
-
-