Class FormattingConfigBasedStream.LineEntry
- java.lang.Object
-
- org.eclipse.xtext.formatting.impl.FormattingConfigBasedStream.LineEntry
-
- Enclosing class:
- FormattingConfigBasedStream
protected class FormattingConfigBasedStream.LineEntry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
countCharactersInLastLine()
protected int
countExistingLeadingNewlines()
protected boolean
isBreak()
protected boolean
isBreakable()
java.lang.String
toString()
-
-
-
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
-
LineEntry
public 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 classjava.lang.Object
-
-