| org.gjt.sp.jedit.indent.IndentRule
All known Subclasses: org.gjt.sp.jedit.indent.RegexpIndentRule, org.gjt.sp.jedit.indent.WhitespaceRule, org.gjt.sp.jedit.indent.DeepIndentRule, org.gjt.sp.jedit.indent.BracketIndentRule,
IndentRule | public interface IndentRule (Code) | | author: Slava Pestov version: $Id: IndentRule.java 10801 2007-10-04 09:13:00Z kpouer $ |
Method Summary | |
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 buffer Parameters: thisLineIndex - the line index Parameters: prevLineIndex - the prior non empty line index(or -1 if there is no prior non empty line) Parameters: prevPrevLineIndex - the prior non empty line index before the prevLineIndex(or -1 if there is no prior non empty line) Parameters: indentActions - the indent actions list. |
apply | void apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, List<IndentAction> indentActions)(Code) | | Apply the indent rule to this line, and return an indent action.
Parameters: buffer - the buffer Parameters: thisLineIndex - the line index Parameters: prevLineIndex - the prior non empty line index(or -1 if there is no prior non empty line) Parameters: prevPrevLineIndex - the prior non empty line index before the prevLineIndex(or -1 if there is no prior non empty line) Parameters: indentActions - the indent actions list. The rule can add an action in it ifit is necessary |
|
|