public class DetailAstSet extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.SortedMap<java.lang.Integer,DetailAST> |
astLines
Maps line numbers to their ast.
|
private IndentationCheck |
indentCheck
The instance of
IndentationCheck used by this class. |
| Constructor and Description |
|---|
DetailAstSet(IndentationCheck indentCheck)
Construct an instance of this class with
IndentationCheck parameters. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAst(DetailAST ast)
Add ast to the set of ast.
|
private void |
addLineWithAst(int lineNo,
DetailAST ast)
Map ast with their line number.
|
protected int |
expandedTabsColumnNo(DetailAST ast)
Get the column number for the start of a given expression, expanding
tabs out into spaces in the process.
|
DetailAST |
firstLine()
The first line in set of ast.
|
DetailAST |
getAst(int lineNum)
Get the ast corresponding to line number.
|
java.lang.Integer |
getStartColumn(int lineNum)
Get starting column number for the ast.
|
boolean |
isEmpty()
Check if the this set of ast is empty.
|
java.lang.Integer |
lastLine()
Get the line number of the last line.
|
private final IndentationCheck indentCheck
IndentationCheck used by this class.public DetailAstSet(IndentationCheck indentCheck)
IndentationCheck parameters.indentCheck - IndentationCheck parameterspublic void addAst(DetailAST ast)
ast - the ast to addprivate void addLineWithAst(int lineNo, DetailAST ast)
lineNo - line number of ast to addast - ast to addpublic java.lang.Integer getStartColumn(int lineNum)
lineNum - the line number as keypublic boolean isEmpty()
public DetailAST firstLine()
public DetailAST getAst(int lineNum)
lineNum - line number of ast.public java.lang.Integer lastLine()
protected final int expandedTabsColumnNo(DetailAST ast)
ast - the expression to find the start ofCopyright © 2001-2022. All Rights Reserved.