Question rule in the indentation decision tree. Determines if the
line previous to the current position starts with the specified character.
version: $Id: QuestionPrevLineStartsWith.java 4255 2007-08-28 19:17:37Z mgricken $
applyRule(AbstractDJDocument doc, Indenter.IndentReason reason) Determines if the previous line in the document starts with the specified characters, ignoring whitespace.
Parameters: doc - AbstractDJDocument containing the line to be indented.
Constructs a new rule for the given prefix string.
ALWAYS looks inside comments.
Parameters: prefix - String to search for Parameters: yesRule - Rule to use if this rule holds Parameters: noRule - Rule to use if this rule does not hold
Determines if the previous line in the document starts with the specified characters, ignoring whitespace.
Parameters: doc - AbstractDJDocument containing the line to be indented. true if this node's rule holds.
Methods inherited from edu.rice.cs.drjava.model.definitions.indent.IndentRuleQuestion