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.EObjectgrammarElementprotected ParserRulehiddenTokenDefinitionprotected intindentprotected booleanisHiddenprotected java.util.Set<AbstractFormattingConfig.ElementLocator>leadingLocatorsprotected java.lang.StringleadingWSprotected java.lang.Stringvalue
-
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 intcountCharactersInLastLine()protected intcountExistingLeadingNewlines()protected booleanisBreak()protected booleanisBreakable()java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-