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

java.lang.Object
  extended by edu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace
      extended by edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion
          extended by edu.rice.cs.drjava.model.definitions.indent.QuestionFollowedByStar
All Implemented Interfaces:
IndentRule

public class QuestionFollowedByStar
extends IndentRuleQuestion

Question rule in the indentation decision tree. Determines if the next non-whitespace character is a star '*'. This is useful for determining if we are at the beginning of a previously ill-formed block comment.

Does not work if character being searched for is a '/' or a '*'

Version:
$Id: QuestionFollowedByStar.java 4653 2008-08-26 14:46:35Z rcartwright $

Field Summary
 
Fields inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace
NO, TERMINUS_RULE, YES
 
Constructor Summary
QuestionFollowedByStar(IndentRule yesRule, IndentRule noRule)
          Constructs a new rule which determines if the current position is immediately followed by a star '*'.
 
Method Summary
 
Methods inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion
indentLine, testIndentLine
 
Methods inherited from class edu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace
_addToIndentTrace, getRuleName, indentLine, printLastIndentTrace, setRuleTraceEnabled, testIndentLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionFollowedByStar

public QuestionFollowedByStar(IndentRule yesRule,
                              IndentRule noRule)
Constructs a new rule which determines if the current position is immediately followed by a star '*'.

Parameters:
yesRule - Rule to use if this rule holds
noRule - Rule to use if this rule does not hold