Module jEdit

Class CloseBracketIndentRule

java.lang.Object
org.gjt.sp.jedit.indent.BracketIndentRule
org.gjt.sp.jedit.indent.CloseBracketIndentRule
All Implemented Interfaces:
IndentRule

public class CloseBracketIndentRule extends BracketIndentRule
Version:
$Id: CloseBracketIndentRule.java 25222 2020-04-12 16:07:38Z kpouer $
Author:
Slava Pestov
  • Constructor Details

    • CloseBracketIndentRule

      public CloseBracketIndentRule(char closeBracket, boolean aligned)
  • Method Details

    • apply

      public void apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, List<IndentAction> indentActions)
      Description copied from interface: IndentRule
      Apply the indent rule to this line, and return an indent action.
      Parameters:
      buffer - the buffer
      thisLineIndex - the line index
      prevLineIndex - 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