public class SpacingImpl extends Spacing
Spacing
in order to keep number of additional settings like 'minSpaces'
, 'minLineFeeds'
,
'prefLineFeeds'
etc.Modifier and Type | Field and Description |
---|---|
protected int |
myFlags |
Constructor and Description |
---|
SpacingImpl(int minSpaces,
int maxSpaces,
int minLineFeeds,
boolean isReadOnly,
boolean safe,
boolean shouldKeepLineBreaks,
int keepBlankLines,
boolean keepFirstColumn,
int prefLineFeeds) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Note: current implementation uses soft type check, i.e.
|
int |
getKeepBlankLines() |
int |
getMaxSpaces() |
int |
getMinLineFeeds() |
int |
getMinSpaces() |
int |
getPrefLineFeeds() |
int |
hashCode() |
boolean |
isReadOnly() |
boolean |
isSafe() |
void |
refresh(BlockRangesMap helper)
Allows to ask to refresh current state using given formatter if necessary.
|
boolean |
shouldKeepFirstColumn() |
boolean |
shouldKeepLineFeeds() |
java.lang.String |
toString() |
createDependentLFSpacing, createDependentLFSpacing, createDependentLFSpacing, createKeepingFirstColumnSpacing, createSafeSpacing, createSpacing, createSpacing, getReadOnlySpacing
public SpacingImpl(int minSpaces, int maxSpaces, int minLineFeeds, boolean isReadOnly, boolean safe, boolean shouldKeepLineBreaks, int keepBlankLines, boolean keepFirstColumn, int prefLineFeeds)
public int getMinSpaces()
public int getMaxSpaces()
public int getMinLineFeeds()
public final boolean isReadOnly()
public final boolean isSafe()
public void refresh(BlockRangesMap helper)
public final boolean shouldKeepLineFeeds()
public int getKeepBlankLines()
public final boolean shouldKeepFirstColumn()
public boolean equals(java.lang.Object o)
SpacingImpl
and compares state defined at this class only. That means that sub-classes are assumed
not to override this method in order to preserve 'symmetric'
property.equals
in class java.lang.Object
o
- public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int getPrefLineFeeds()