edu.rice.cs.drjava.model.definitions.indent
Class QuestionFollowedByStar
java.lang.Object
edu.rice.cs.drjava.model.definitions.indent.IndentRuleWithTrace
edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 holdsnoRule
- Rule to use if this rule does not hold