edu.rice.cs.drjava.model.definitions.indent
Class IndentRuleAction
java.lang.Object
|
+--edu.rice.cs.drjava.model.definitions.indent.IndentRuleAction
- All Implemented Interfaces:
- IndentRule
- Direct Known Subclasses:
- ActionBracePlus, ActionDoNothing, ActionStartCurrStmtPlus, ActionStartPrevLinePlus, ActionStartPrevStmtPlus, ActionStartStmtOfBracePlus
- public abstract class IndentRuleAction
- extends Object
- implements IndentRule
A leaf node in the decision tree for the indentation system.
Performs the update to the document, based on the context provided
by its position in the decision tree.
- Version:
- $Id: IndentRuleAction.java,v 1.4 2002/03/22 05:39:46 csreis Exp $
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
IndentRuleAction
public IndentRuleAction()
indentLine
public void indentLine(DefinitionsDocument doc,
int pos)
- 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.
- Parameters:
doc
- DefinitionsDocument containing the line to be indented.pos
- Position within line to be indented.
indentLine
public abstract void indentLine(DefinitionsDocument doc)
- Properly indents the line that the current position is on.
Replaces all whitespace characters at the beginning of the
line with the appropriate spacing or characters.
- Specified by:
indentLine
in interface IndentRule
- Parameters:
doc
- DefinitionsDocument containing the line to be indented.