Package org.gjt.sp.jedit.indent
Class DeepIndentRule
- java.lang.Object
-
- org.gjt.sp.jedit.indent.DeepIndentRule
-
- All Implemented Interfaces:
IndentRule
public class DeepIndentRule extends java.lang.Object implements IndentRule
Deep indent rule.- Version:
- $Id: DeepIndentRule.java 24413 2016-06-19 11:07:31Z kerik-sf $
- Author:
- Matthieu Casanova
-
-
Constructor Summary
Constructors Constructor Description DeepIndentRule(char openChar, char closeChar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(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.
-
-
-
Method Detail
-
apply
public void apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, java.util.List<IndentAction> indentActions)
Description copied from interface:IndentRuleApply the indent rule to this line, and return an indent action.- Specified by:
applyin interfaceIndentRule- 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
-
-