edu.rice.cs.drjava.model.definitions.indent
Class QuestionCurrLineEmpty

java.lang.Object
  |
  +--edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion
        |
        +--edu.rice.cs.drjava.model.definitions.indent.QuestionCurrLineEmpty
All Implemented Interfaces:
IndentRule

class QuestionCurrLineEmpty
extends IndentRuleQuestion

Version:
$Id: QuestionCurrLineEmpty.java,v 1.6 2002/03/30 06:19:12 csreis Exp $ Asks whether the current line is empty (contains only whitespace).

Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion
_noRule, _yesRule
 
Constructor Summary
(package private) QuestionCurrLineEmpty(IndentRule yesRule, IndentRule noRule)
           
 
Method Summary
(package private)  boolean applyRule(DefinitionsDocument doc)
          Determines if the current line in the document is empty.
 
Methods inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion
applyRule, indentLine, indentLine
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

QuestionCurrLineEmpty

QuestionCurrLineEmpty(IndentRule yesRule,
                      IndentRule noRule)
Method Detail

applyRule

boolean applyRule(DefinitionsDocument doc)
Determines if the current line in the document is empty.
Overrides:
applyRule in class IndentRuleQuestion
Parameters:
doc - DefinitionsDocument containing the line to be indented.
Returns:
true if this node's rule holds.