Uses of Interface
edu.rice.cs.drjava.model.definitions.indent.IndentRule

Packages that use IndentRule
edu.rice.cs.drjava.model.definitions.indent Provides a decision tree used to correctly indent the current line. 
 

Uses of IndentRule in edu.rice.cs.drjava.model.definitions.indent
 

Classes in edu.rice.cs.drjava.model.definitions.indent that implement IndentRule
 class ActionBracePlus
          Aligns indentation of the current line to the character that opened the enclosing block or expression list.
 class ActionDoNothing
          Indents the current line in the document to the indent level of the start of the contract or statement of the brace enclosing the current position, plus the given suffix.
 class ActionStartCurrStmtPlus
          Indents the current line in the document to the indent level of the start of the statement that the cursor is currently on, plus the given suffix string.
(package private)  class ActionStartPrevLinePlus
          Indents current line to the indent level of the previous line augmented by a suffix.
(package private)  class ActionStartPrevLinePlusMultiline
          Indents the current line in the document to the indent level of the start of the previous line, adds several lines of text at that indent level, and moves the cursor to a particular line and position.
(package private)  class ActionStartPrevLinePlusMultilinePreserve
          Indents the current line in the document to the indent level of the start of the previous line, preserving any text on the current line, and adds several lines of text at that indent level, and moves the cursor to a particular line and position.
 class ActionStartPrevStmtPlus
          Indents the current line in the document to the indent level of the start of the statement previous to the one the cursor is currently on, plus the given suffix string.
 class ActionStartStmtOfBracePlus
          Indents the current line in the document to the indent level of the start of the brace enclosing the start of the current line, plus the given suffix.
 class IndentRuleAction
          A leaf node in the decision tree for the indentation system.
 class IndentRuleQuestion
          A question node in the decision tree for the indentation system.
 class IndentRuleWithTrace
          This class does almost all the work for keeping an indent tree trace.
 class QuestionBraceIsCurly
          Determines whether or not the last block or expression list opened previous to the start of the current line was opened by the character '{'.
 class QuestionBraceIsParenOrBracket
          Determines whether or not the last block or expression list opened previous to the start of the current line was opened by one of the characters '(' or '['.
(package private)  class QuestionCurrLineEmpty
           
(package private)  class QuestionCurrLineEmptyOrEnterPress
           
 class QuestionCurrLineIsWingComment
          Determines whether or not the current line in the document starts with "//"
 class QuestionCurrLineStartsWith
          Question rule in the indentation decision tree.
 class QuestionCurrLineStartsWithSkipComments
          Determines whether the current line in the document starts with a specific character sequence, skipping over any comments and leading whitespace on that line.
 class QuestionExistsCharInPrevStmt
          This class checks the previous statement for the given character
 class QuestionExistsCharInStmt
          Determines if the given search character is found between the start of the current statement and the end character.
 class QuestionFollowedByStar
          Question rule in the indentation decision tree.
 class QuestionHasCharPrecedingOpenBrace
          Determines whether or not the line enclosing brace is '{' and is immediately preceded by the given _prefix.
(package private)  class QuestionInsideComment
          Asks whether the beginning of the current line is inside a C-style comment.
 class QuestionLineContains
          Question rule in the indentation decision tree.
 class QuestionNewParenPhrase
          Question rule in the indentation decision tree.
(package private)  class QuestionPrevLineStartsComment
          Given the start of the current line is inside a block comment, asks whether the comment begins on the "previous line," ignoring white space.
 class QuestionPrevLineStartsJavaDocWithText
          Question rule in the indentation decision tree.
 class QuestionPrevLineStartsWith
          Question rule in indentation decision tree.
 class QuestionStartAfterOpenBrace
          Determines whether or not the closest non-whitespace character preceding the start of the current line (excluding any characters inside comments or strings) is on the same line as the enclosing CURLY brace (class is misnamed!).
 class QuestionStartingNewStmt
          Determines if the current line is starting a new statement by searching backwards to see if the previous line was the end of a statement.
 

Fields in edu.rice.cs.drjava.model.definitions.indent declared as IndentRule
private  IndentRule IndentRuleQuestion._noRule
          Node in decision tree to use if the rule does not hold in this context.
protected  IndentRule Indenter._topRule
          Root of decision tree.
private  IndentRule IndentRuleQuestion._yesRule
          Node in decision tree to use if the rule holds in this context.
 

Constructors in edu.rice.cs.drjava.model.definitions.indent with parameters of type IndentRule
IndentRuleQuestion(IndentRule yesRule, IndentRule noRule)
          Constructs a new Question indent rule using the two given children.
QuestionBraceIsCurly(IndentRule yesRule, IndentRule noRule)
           
QuestionBraceIsParenOrBracket(IndentRule yesRule, IndentRule noRule)
           
QuestionCurrLineEmpty(IndentRule yesRule, IndentRule noRule)
           
QuestionCurrLineEmptyOrEnterPress(IndentRule yesRule, IndentRule noRule)
           
QuestionCurrLineIsWingComment(IndentRule yesRule, IndentRule noRule)
           
QuestionCurrLineStartsWith(java.lang.String prefix, IndentRule yesRule, IndentRule noRule)
          Constructs a new rule for the given prefix string.
QuestionCurrLineStartsWithSkipComments(java.lang.String prefix, IndentRule yesRule, IndentRule noRule)
           
QuestionExistsCharInPrevStmt(char lookFor, IndentRule yesRule, IndentRule noRule)
           
QuestionExistsCharInStmt(char findChar, char endChar, IndentRule yesRule, IndentRule noRule)
          Constructs a rule to determine if findChar exists between the start of the current statement and endChar.
QuestionFollowedByStar(IndentRule yesRule, IndentRule noRule)
          Constructs a new rule which determines if the current position is immediately followed by a star '*'.
QuestionHasCharPrecedingOpenBrace(char[] prefix, IndentRule yesRule, IndentRule noRule)
           
QuestionInsideComment(IndentRule yesRule, IndentRule noRule)
           
QuestionLineContains(char findChar, IndentRule yesRule, IndentRule noRule)
          Constructs a new rule which determines if the line contains the given character.
QuestionNewParenPhrase(IndentRule yesRule, IndentRule noRule)
          Constructs a new rule to determine if the current line starts new paren phrase.
QuestionPrevLineStartsComment(IndentRule yesRule, IndentRule noRule)
           
QuestionPrevLineStartsJavaDocWithText(IndentRule yesRule, IndentRule noRule)
          Constructs a rule that looks for "/**" as first non-whitespace followed by some additional non-whitespace text
QuestionPrevLineStartsWith(java.lang.String prefix, IndentRule yesRule, IndentRule noRule)
          Constructs a new rule for the given prefix string.
QuestionStartAfterOpenBrace(IndentRule yesRule, IndentRule noRule)
           
QuestionStartingNewStmt(IndentRule yesRule, IndentRule noRule)
          Constructs a new rule to determine if the current line is the start of a new statement.