edu.rice.cs.drjava.model.definitions.indent
Class ActionStartStmtOfBracePlus
java.lang.Object
|
+--edu.rice.cs.drjava.model.definitions.indent.IndentRuleAction
|
+--edu.rice.cs.drjava.model.definitions.indent.ActionStartStmtOfBracePlus
- All Implemented Interfaces:
- IndentRule
- public class ActionStartStmtOfBracePlus
- extends IndentRuleAction
Indents the current line in the document to the indent level of the
start of the contract or statement of the brace enclosing the start of the
current line, plus the given suffix.
- Version:
- $Id: ActionStartStmtOfBracePlus.java,v 1.10 2002/07/22 22:50:41 csreis Exp $
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
_suffix
private String _suffix
ActionStartStmtOfBracePlus
public ActionStartStmtOfBracePlus(String suffix)
- Constructs a new rule with the given suffix string.
- Parameters:
prefix
- String to append to indent level of brace
indentLine
public void indentLine(DefinitionsDocument doc)
- Properly indents the line that the caret is currently on.
Replaces all whitespace characters at the beginning of the
line with the appropriate spacing or characters.
- Overrides:
indentLine
in class IndentRuleAction
- Parameters:
doc
- DefinitionsDocument containing the line to be indented.