org.gjt.sp.jedit.indent
Class BracketIndentRule
java.lang.Object
org.gjt.sp.jedit.indent.BracketIndentRule
- All Implemented Interfaces:
- IndentRule
- Direct Known Subclasses:
- CloseBracketIndentRule, OpenBracketIndentRule
public abstract class BracketIndentRule
- extends java.lang.Object
- implements IndentRule
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
openBracket
protected char openBracket
closeBracket
protected char closeBracket
BracketIndentRule
public BracketIndentRule(char openBracket,
char closeBracket)
getBrackets
@Deprecated
public BracketIndentRule.Brackets getBrackets(java.lang.String line)
- Deprecated. Use
getBrackets(JEditBuffer,int,int,int)
instead.
Brackets in comments or literals should be ignored for indent.
But it can't be done without syntax parsing of a buffer.
getBrackets
public BracketIndentRule.Brackets getBrackets(JEditBuffer buffer,
int lineIndex)
getBrackets
public BracketIndentRule.Brackets getBrackets(JEditBuffer buffer,
int lineIndex,
int begin,
int end)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object