Class OneWhitespaceFormatter.OneWhitespaceFormatterStream

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isComment​(org.eclipse.emf.ecore.EObject grammarElement, java.lang.String value)  
      void writeHidden​(org.eclipse.emf.ecore.EObject grammarElement, java.lang.String value)  
      void writeSemantic​(org.eclipse.emf.ecore.EObject grammarElement, java.lang.String value)  
      protected void writeSpaceIfNecessary()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hasStarted

        protected boolean hasStarted
      • preserveWS

        protected boolean preserveWS
      • wsWritten

        protected boolean wsWritten
    • 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:
        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
      • writeSpaceIfNecessary

        protected void writeSpaceIfNecessary()
                                      throws java.io.IOException
        Throws:
        java.io.IOException