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).
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
QuestionCurrLineEmpty
QuestionCurrLineEmpty(IndentRule yesRule,
IndentRule noRule)
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.