public class StaticTextWhiteSpaceDefinitionStrategy extends AbstractWhiteSpaceFormattingStrategy
Constructor and Description |
---|
StaticTextWhiteSpaceDefinitionStrategy(java.lang.CharSequence... whiteSpaces) |
Modifier and Type | Method and Description |
---|---|
int |
check(java.lang.CharSequence text,
int start,
int end)
Checks if given sub-sequence of the given text contains symbols that may be treated as white spaces.
|
addWhitespace, adjustWhiteSpaceIfNecessary, adjustWhiteSpaceIfNecessary, containsWhitespacesOnly, replaceDefaultStrategy
public StaticTextWhiteSpaceDefinitionStrategy(java.lang.CharSequence... whiteSpaces)
public int check(java.lang.CharSequence text, int start, int end)
WhiteSpaceFormattingStrategy
text
- text to checkstart
- start offset to use with the given text (inclusive)end
- end offset to use with the given text (exclusive)[startOffset; endOffset)
range
and is not treated as white space by the current strategy or value that is greater
or equal to the given 'end'
parameter if all target sub-sequence symbols
can be treated as white spaces