| java.lang.Object edu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace
All known Subclasses: edu.rice.cs.drjava.model.definitions.indent.IndentRuleAction, edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion,
IndentRuleWithTrace | abstract public class IndentRuleWithTrace implements IndentRule(Code) | | This class does almost all the work for keeping an indent tree trace. IndentRuleQuestion
also does some of the work, and any subclass may substitute its own version of getRuleName()
Note: traceing is disabled by default
version: $Id: IndentRuleWithTrace.java 4255 2007-08-28 19:17:37Z mgricken $ |
_addToIndentTrace | protected static void _addToIndentTrace(String ruleName, String direction, boolean terminus)(Code) | | This rule just adds to the trace kept in trace
|
getRuleName | public String getRuleName()(Code) | | The rule name to report to _addToIndentTrace
|
indentLine | public boolean indentLine(AbstractDJDocument doc, int pos, Indenter.IndentReason reason)(Code) | | 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.
Parameters: doc - AbstractDJDocument containing the line to be indented. Parameters: pos - ? Parameters: reason - The reason that the indentation is taking place true if the caller should update the current location itself,false if the indenter has already handled this |
setRuleTraceEnabled | public static void setRuleTraceEnabled(boolean ruleTraceEnabled)(Code) | | |
|
|