|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gjt.sp.jedit.indent.BracketIndentRule
org.gjt.sp.jedit.indent.OpenBracketIndentRule
public class OpenBracketIndentRule
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.gjt.sp.jedit.indent.BracketIndentRule |
---|
BracketIndentRule.Brackets |
Field Summary |
---|
Fields inherited from class org.gjt.sp.jedit.indent.BracketIndentRule |
---|
closeBracket, openBracket |
Constructor Summary | |
---|---|
OpenBracketIndentRule(char openBracket,
boolean aligned)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.gjt.sp.jedit.indent.BracketIndentRule |
---|
getBrackets, getBrackets, getBrackets, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OpenBracketIndentRule(char openBracket, boolean aligned)
Method Detail |
---|
public void apply(JEditBuffer buffer, int thisLineIndex, int prevLineIndex, int prevPrevLineIndex, java.util.List<IndentAction> indentActions)
IndentRule
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |