| java.lang.Object edu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion edu.rice.cs.drjava.model.definitions.indent.QuestionNewParenPhrase
QuestionNewParenPhrase | public class QuestionNewParenPhrase extends IndentRuleQuestion (Code) | | Question rule in the indentation decision tree. Determines if the current line starts a new "phrase" within a
parenthesized expression. Specifically, this rule determines if the previous line ends in a comma, semicolon,
open paren, or open bracket. Note that whitespace, blank lines, and comments are disregarded.
version: $Id: QuestionNewParenPhrase.java 4255 2007-08-28 19:17:37Z mgricken $ |
Method Summary | |
boolean | applyRule(AbstractDJDocument doc, Indenter.IndentReason reason) Determines if the previous line ends in a comma, semicolon,
open paren, open bracket, operator, or comparator.
Parameters: doc - AbstractDJDocument containing the line to be indented. |
QuestionNewParenPhrase | public QuestionNewParenPhrase(IndentRule yesRule, IndentRule noRule)(Code) | | Constructs a new rule to determine if the current line starts
new paren phrase.
Parameters: yesRule - Rule to use if this rule holds Parameters: noRule - Rule to use if this rule does not hold |
applyRule | boolean applyRule(AbstractDJDocument doc, Indenter.IndentReason reason)(Code) | | Determines if the previous line ends in a comma, semicolon,
open paren, open bracket, operator, or comparator.
Parameters: doc - AbstractDJDocument containing the line to be indented. true if this node's rule holds. |
|
|