public class DetailAstSet extends Object
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.
|
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.
|
Integer |
getStartColumn(int lineNum)
Get starting column number for the ast.
|
boolean |
isEmpty()
Check if the this set of ast is empty.
|
Integer |
lastLine()
Get the line number of the last line.
|
public DetailAstSet(IndentationCheck indentCheck)
IndentationCheck
parameters.indentCheck
- IndentationCheck parameterspublic void addAst(DetailAST ast)
ast
- the ast to addpublic 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 Integer lastLine()
protected final int expandedTabsColumnNo(DetailAST ast)
ast
- the expression to find the start ofCopyright © 2001–2020. All rights reserved.