public class WhitespaceRule extends java.lang.Object implements IndentRule
The result is that this rule won't allow the indentation to be increased, only decreased (by rules triggered by unindentThisLine). If the requirements above do not apply, this rule does nothing.
|Constructor and Description|
|Modifier and Type||Method and Description|
Apply the indent rule to this line, and return an indent action.
public void apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, java.util.List<IndentAction> indentActions)
buffer- the buffer
thisLineIndex- the line index
prevLineIndex- the prior non empty line index (or -1 if there is no prior non empty line)
prevPrevLineIndex- the prior non empty line index before the prevLineIndex (or -1 if there is no prior non empty line)
indentActions- the indent actions list. The rule can add an action in it if it is necessary