org.eclipse.xtext.formatting.impl
Class FormattingConfigBasedStream.LineEntry

java.lang.Object
  extended by org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.LineEntry
Enclosing class:
FormattingConfigBasedStream

protected class FormattingConfigBasedStream.LineEntry
extends java.lang.Object


Field Summary
protected  org.eclipse.emf.ecore.EObject grammarElement
           
protected  ParserRule hiddenTokenDefinition
           
protected  int indent
           
protected  boolean isHidden
           
protected  java.util.Set<AbstractFormattingConfig.ElementLocator> leadingLocators
           
protected  java.lang.String leadingWS
           
protected  java.lang.String value
           
 
Constructor Summary
FormattingConfigBasedStream.LineEntry(org.eclipse.emf.ecore.EObject grammarElement, java.lang.String value, boolean isHidden, java.util.Set<AbstractFormattingConfig.ElementLocator> beforeLocators, java.lang.String leadingWS, int indent, ParserRule hiddenTokenDefition)
           
 
Method Summary
protected  int countCharactersInLastLine()
           
protected  int countExistingLeadingNewlines()
           
protected  boolean isBreak()
           
protected  boolean isBreakable()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

grammarElement

protected org.eclipse.emf.ecore.EObject grammarElement

hiddenTokenDefinition

protected ParserRule hiddenTokenDefinition

indent

protected int indent

isHidden

protected boolean isHidden

leadingLocators

protected java.util.Set<AbstractFormattingConfig.ElementLocator> leadingLocators

leadingWS

protected java.lang.String leadingWS

value

protected java.lang.String value
Constructor Detail

FormattingConfigBasedStream.LineEntry

public FormattingConfigBasedStream.LineEntry(org.eclipse.emf.ecore.EObject grammarElement,
                                             java.lang.String value,
                                             boolean isHidden,
                                             java.util.Set<AbstractFormattingConfig.ElementLocator> beforeLocators,
                                             java.lang.String leadingWS,
                                             int indent,
                                             ParserRule hiddenTokenDefition)
Method Detail

countCharactersInLastLine

protected int countCharactersInLastLine()

countExistingLeadingNewlines

protected int countExistingLeadingNewlines()

isBreak

protected boolean isBreak()

isBreakable

protected boolean isBreakable()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object