edu.rice.cs.drjava.model.definitions.indent
Class QuestionInsideComment
java.lang.Object
|
+--edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion
|
+--edu.rice.cs.drjava.model.definitions.indent.QuestionInsideComment
- All Implemented Interfaces:
- IndentRule
- class QuestionInsideComment
- extends IndentRuleQuestion
Asks whether the beginning of the current line is inside a C-style comment.
- Version:
- $Id: QuestionInsideComment.java,v 1.10 2002/07/22 22:50:41 csreis Exp $
Method Summary |
(package private) boolean |
applyRule(DefinitionsDocument doc)
Determines if the (start of the!!) current line in the document is in a block comment. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
QuestionInsideComment
QuestionInsideComment(IndentRule yesRule,
IndentRule noRule)
applyRule
boolean applyRule(DefinitionsDocument doc)
- Determines if the (start of the!!) current line in the document is in a block comment.
- Overrides:
applyRule
in class IndentRuleQuestion
- Parameters:
doc
- DefinitionsDocument containing the line to be indented.- Returns:
- true if this node's rule holds.