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 $

Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion
_noRule, _yesRule
 
Constructor Summary
(package private) QuestionInsideComment(IndentRule yesRule, IndentRule noRule)
           
 
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 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

QuestionInsideComment

QuestionInsideComment(IndentRule yesRule,
                      IndentRule noRule)
Method Detail

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.