|
||||||||||
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 the indentation of the current line to the character that opened the most recent block or expression list that contains the beginning of the current line. |
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 the current line in the document to the indent level of the start of the previous line, plus the given suffix. |
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 contract or statement 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 |
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
|
class |
QuestionCurrLineStartsWith
Question rule in the indentation decision tree. |
class |
QuestionCurrLineStartsWithSkipComments
Determines whether or not the current line in the document starts with a specific character sequence, skipping over any comments on that line. |
class |
QuestionExistsCharInStmt
Determines if the given search character is found between the start of the current statement and the end character. |
class |
QuestionHasCharPrecedingOpenBrace
Determines whether or not the last '{' was immediately preceded by _prefix So when _prefix='=', effectivily, we are looking for "={" This questions corresponds to rule 22 in our decision tree. |
(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 C-style comment, asks whether the comment begins on the "previous line," ignoring white space. |
class |
QuestionPrevLineStartsWith
Question rule in the indentation decision tree. |
class |
QuestionStartAfterOpenBrace
Determines whether or not the closest non-whitespace character previous to the start of the current line (excluding any characters inside comments or strings) is an open brace. |
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._yesRule
Node in decision tree to use if the rule holds in this context. |
private IndentRule |
IndentRuleQuestion._noRule
Node in decision tree to use if the rule does not hold in this context. |
private 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. |
|
QuestionCurrLineEmpty(IndentRule yesRule,
IndentRule noRule)
|
|
QuestionInsideComment(IndentRule yesRule,
IndentRule noRule)
|
|
QuestionCurrLineStartsWith(String prefix,
IndentRule yesRule,
IndentRule noRule)
Constructs a new rule for the given prefix string. |
|
QuestionBraceIsParenOrBracket(IndentRule yesRule,
IndentRule noRule)
|
|
QuestionNewParenPhrase(IndentRule yesRule,
IndentRule noRule)
Constructs a new rule to determine if the current line starts new paren phrase. |
|
QuestionHasCharPrecedingOpenBrace(char[] prefix,
IndentRule yesRule,
IndentRule noRule)
|
|
QuestionPrevLineStartsComment(IndentRule yesRule,
IndentRule noRule)
|
|
QuestionPrevLineStartsWith(String prefix,
IndentRule yesRule,
IndentRule noRule)
Constructs a new rule for the given prefix string. |
|
QuestionStartAfterOpenBrace(IndentRule yesRule,
IndentRule noRule)
|
|
QuestionLineContains(char findChar,
IndentRule yesRule,
IndentRule noRule)
Constructs a new rule which determines if the line contains the given character. |
|
QuestionBraceIsCurly(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. |
|
QuestionCurrLineStartsWithSkipComments(String prefix,
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 |