|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace
edu.rice.cs.drjava.model.definitions.indent.IndentRuleAction
edu.rice.cs.drjava.model.definitions.indent.ActionStartStmtOfBracePlus
public class ActionStartStmtOfBracePlus
Indents the current line in the document to the indent level of the start of the brace enclosing the start of the current line, plus the given suffix.
| Field Summary | |
|---|---|
private int |
_suffix
|
| Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace |
|---|
NO, TERMINUS_RULE, YES |
| Constructor Summary | |
|---|---|
ActionStartStmtOfBracePlus(int suffix)
Constructs a new rule with the given suffix string. |
|
| Method Summary | |
|---|---|
boolean |
indentLine(AbstractDJDocument doc,
Indenter.IndentReason reason)
Properly indents the line that the caret is currently on. |
| Methods inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace |
|---|
_addToIndentTrace, getRuleName, getTrace, indentLine, printLastIndentTrace, setRuleTraceEnabled, testIndentLine, testIndentLine |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int _suffix
| Constructor Detail |
|---|
public ActionStartStmtOfBracePlus(int suffix)
suffix - String to append to indent level of brace| Method Detail |
|---|
public boolean indentLine(AbstractDJDocument doc,
Indenter.IndentReason reason)
indentLine in interface IndentRuleindentLine in class IndentRuleWithTracedoc - AbstractDJDocument containing the line to be indented.reason - The reason that the indentation is taking place
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||