| java.lang.Object edu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion
All known Subclasses: edu.rice.cs.drjava.model.definitions.indent.QuestionNewParenPhrase, edu.rice.cs.drjava.model.definitions.indent.QuestionCurrLineStartsWith, edu.rice.cs.drjava.model.definitions.indent.QuestionExistsCharInStmt, edu.rice.cs.drjava.model.definitions.indent.QuestionLineContains, edu.rice.cs.drjava.model.definitions.indent.QuestionHasCharPrecedingOpenBrace, edu.rice.cs.drjava.model.definitions.indent.QuestionFollowedByStar, edu.rice.cs.drjava.model.definitions.indent.QuestionBraceIsCurly, edu.rice.cs.drjava.model.definitions.indent.QuestionPrevLineStartsJavaDocWithText, edu.rice.cs.drjava.model.definitions.indent.QuestionPrevLineStartsComment, edu.rice.cs.drjava.model.definitions.indent.QuestionCurrLineIsWingComment, edu.rice.cs.drjava.model.definitions.indent.QuestionBraceIsParenOrBracket, edu.rice.cs.drjava.model.definitions.indent.QuestionCurrLineEmpty, edu.rice.cs.drjava.model.definitions.indent.QuestionExistsCharInPrevStmt, edu.rice.cs.drjava.model.definitions.indent.QuestionStartAfterOpenBrace, edu.rice.cs.drjava.model.definitions.indent.QuestionPrevLineStartsWith, edu.rice.cs.drjava.model.definitions.indent.QuestionInsideComment, edu.rice.cs.drjava.model.definitions.indent.QuestionStartingNewStmt, edu.rice.cs.drjava.model.definitions.indent.QuestionCurrLineEmptyOrEnterPress, edu.rice.cs.drjava.model.definitions.indent.QuestionCurrLineStartsWithSkipComments,
IndentRuleQuestion | abstract public class IndentRuleQuestion extends IndentRuleWithTrace (Code) | | A question node in the decision tree for the indentation system.
Calls to indentLine on an IndentRuleQuestion will
make a decision based on context and call the same method on
one of its children. The leaves of the tree are represented
by IndentRuleAction objects.
version: $Id: IndentRuleQuestion.java 4255 2007-08-28 19:17:37Z mgricken $ |
IndentRuleQuestion | public IndentRuleQuestion(IndentRule yesRule, IndentRule noRule)(Code) | | Constructs a new Question indent rule using the two given children.
Parameters: yesRule - Rule to use if this rule holds Parameters: noRule - Rule to use if this rule does not hold |
applyRule | abstract boolean applyRule(AbstractDJDocument doc, Indenter.IndentReason reason)(Code) | | Determines if the given rule holds in this context.
Parameters: doc - AbstractDJDocument containing the line to be indented. Parameters: reason - The reason that indentation was initiated, specified in Indenter true if this node's rule holds. |
applyRule | boolean applyRule(AbstractDJDocument doc, int pos, Indenter.IndentReason reason)(Code) | | Determines if the given rule holds in this context.
Parameters: doc - AbstractDJDocument containing the line to be indented. Parameters: pos - Position within line to be indented. Parameters: reason - The reason that indentation was initiated, specified in Indenter true if this node's rule holds. |
indentLine | public boolean indentLine(AbstractDJDocument doc, Indenter.IndentReason reason)(Code) | | Determines if the given rule holds in this context and calls
the same method on one of its child nodes.
Parameters: doc - AbstractDJDocument containing the line to be indented. Parameters: reason - The reason that indentation was initiated, specified in Indenter true if the caller should update the current location itself,false if the indenter has already handled this |
|
|