org.gjt.sp.jedit.indent
Class IndentAction.AlignBracket

java.lang.Object
  extended by org.gjt.sp.jedit.indent.IndentAction.AlignBracket
All Implemented Interfaces:
IndentAction
Enclosing interface:
IndentAction

public static class IndentAction.AlignBracket
extends java.lang.Object
implements IndentAction


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gjt.sp.jedit.indent.IndentAction
IndentAction.AlignBracket, IndentAction.AlignOffset, IndentAction.AlignParameter, IndentAction.Collapse, IndentAction.Decrease, IndentAction.Increase, IndentAction.Reset
 
Constructor Summary
IndentAction.AlignBracket(JEditBuffer buffer, int line, int offset)
           
 
Method Summary
 int calculateIndent(JEditBuffer buffer, int line, int oldIndent, int newIndent)
           
 int getExtraIndent()
           
 int getOpenBracketColumn()
           
 java.lang.String getOpenBracketLine()
           
 boolean keepChecking()
           
 void setExtraIndent(int extraIndent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndentAction.AlignBracket

public IndentAction.AlignBracket(JEditBuffer buffer,
                                 int line,
                                 int offset)
Method Detail

getExtraIndent

public int getExtraIndent()

setExtraIndent

public void setExtraIndent(int extraIndent)

getOpenBracketColumn

public int getOpenBracketColumn()

getOpenBracketLine

public java.lang.String getOpenBracketLine()

calculateIndent

public int calculateIndent(JEditBuffer buffer,
                           int line,
                           int oldIndent,
                           int newIndent)
Specified by:
calculateIndent in interface IndentAction
Parameters:
buffer - The buffer
line - The line number that matched the rule; not necessarily the line being indented.
oldIndent - Original indent.
newIndent - The new indent -- ie, indent returned by previous indent action.

keepChecking

public boolean keepChecking()
Specified by:
keepChecking in interface IndentAction
Returns:
true if the indent engine should keep processing after this rule.