public class RegexpIndentRule extends java.lang.Object implements IndentRule
| Constructor and Description | 
|---|
| RegexpIndentRule(java.lang.String regexp,
                IndentAction prevPrev,
                IndentAction prev,
                IndentAction thisLine,
                boolean collapse) | 
| 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. | 
| java.lang.String | toString() | 
public RegexpIndentRule(java.lang.String regexp,
                        IndentAction prevPrev,
                        IndentAction prev,
                        IndentAction thisLine,
                        boolean collapse)
                 throws java.util.regex.PatternSyntaxException
collapse - If true, then if the next indent rule is
 an opening bracket, this rule will not increase indent.java.util.regex.PatternSyntaxExceptionpublic void apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, java.util.List<IndentAction> indentActions)
IndentRuleapply in interface IndentRulebuffer - 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 necessarypublic java.lang.String toString()
toString in class java.lang.Object