| java.lang.Object edu.rice.cs.drjava.model.definitions.indent.Indenter
Indenter | public class Indenter (Code) | | Singleton class to construct and use the indentation decision tree.
version: $Id: Indenter.java 4255 2007-08-28 19:17:37Z mgricken $ |
Inner Class :public enum IndentReason | |
Constructor Summary | |
public | Indenter(int indentLevel) |
Indenter | public Indenter(int indentLevel)(Code) | | |
buildTree | public void buildTree(int indentLevel)(Code) | | Builds the decision tree for indentation.
For now, this method needs to be called every time the size of one indent level is being changed!
|
indent | public boolean indent(AbstractDJDocument doc, Indenter.IndentReason reason)(Code) | | Indents the current line based on a decision tree which determines the indent based on context.
Parameters: doc - document containing line to be indented true if the condition tested by the top rule holds, false otherwise |
|
|