|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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. |
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 '['. |
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. |
class |
QuestionLineContains
Question rule in the indentation decision tree. |
class |
QuestionNewParenPhrase
Question rule in the indentation decision tree. |
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 | |
---|---|
protected IndentRule |
Indenter._topRule
Root of decision tree. |
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)
|
|
QuestionCurrLineIsWingComment(IndentRule yesRule,
IndentRule noRule)
|
|
QuestionCurrLineStartsWith(String prefix,
IndentRule yesRule,
IndentRule noRule)
Constructs a new rule for the given prefix string. |
|
QuestionCurrLineStartsWithSkipComments(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)
|
|
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. |
|
QuestionPrevLineStartsJavaDocWithText(IndentRule yesRule,
IndentRule noRule)
Constructs a rule that looks for "/**" as first non-whitespace followed by some additional non-whitespace text |
|
QuestionPrevLineStartsWith(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. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |