- All Known Implementing Classes:
BracketIndentRule,CloseBracketIndentRule,DeepIndentRule,OpenBracketIndentRule,RegexpIndentRule,WhitespaceRule
public interface IndentRule
Abstract Indentation Rule
- Version:
- $Id: IndentRule.java 21831 2012-06-18 22:54:17Z ezust $
- Author:
- Slava Pestov
-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, List<IndentAction> indentActions) Apply the indent rule to this line, and return an indent action.
-
Method Details
-
apply
void apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, List<IndentAction> indentActions) Apply the indent rule to this line, and return an indent action.- Parameters:
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
-