org.gjt.sp.jedit.indent
Class IndentAction.Collapse
java.lang.Object
org.gjt.sp.jedit.indent.IndentAction.Collapse
- All Implemented Interfaces:
- IndentAction
- Enclosing interface:
- IndentAction
public static class IndentAction.Collapse
- extends java.lang.Object
- implements IndentAction
This handles the following Java code:
if(something)
{ // no indentation on this line, even though previous matches a rule
Method Summary |
int |
calculateIndent(JEditBuffer buffer,
int line,
int oldIndent,
int newIndent)
This does nothing; it is merely a sentinel for the
OpenBracketIndentRule . |
boolean |
equals(java.lang.Object o)
|
boolean |
keepChecking()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndentAction.Collapse
public IndentAction.Collapse()
calculateIndent
public int calculateIndent(JEditBuffer buffer,
int line,
int oldIndent,
int newIndent)
- This does nothing; it is merely a sentinel for the
OpenBracketIndentRule
.
- Specified by:
calculateIndent
in interface IndentAction
- Parameters:
buffer
- The bufferline
- 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.
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object