public class OpenBracketIndentRule extends BracketIndentRule
BracketIndentRule.Brackets
closeBracket, openBracket
Constructor and Description |
---|
OpenBracketIndentRule(char openBracket,
boolean aligned) |
Modifier and Type | Method and Description |
---|---|
void |
apply(JEditBuffer buffer,
int thisLineIndex,
int prevLineIndex,
int prevPrevLineIndex,
java.util.List<IndentAction> indentActions)
Apply the indent rule to this line, and return an indent action.
|
getBrackets, getBrackets, toString
public OpenBracketIndentRule(char openBracket, boolean aligned)
public void apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, java.util.List<IndentAction> indentActions)
IndentRule
buffer
- the bufferthisLineIndex
- the line indexprevLineIndex
- 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