Class CodeSelectorPresentation
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.gui.CodeSelectorPresentation
-
public class CodeSelectorPresentation extends java.lang.ObjectPresentation model for CodeSelector.
-
-
Constructor Summary
Constructors Constructor Description CodeSelectorPresentation(DetailAST ast, java.util.List<java.lang.Integer> lines2position)Constructor.CodeSelectorPresentation(DetailNode node, java.util.List<java.lang.Integer> lines2position)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfindSelectionPositions()Find start and end selection positions from AST line and Column.intgetSelectionEnd()Returns selection end position.intgetSelectionStart()Returns selection start position.
-
-
-
Constructor Detail
-
CodeSelectorPresentation
public CodeSelectorPresentation(DetailAST ast, java.util.List<java.lang.Integer> lines2position)
Constructor.- Parameters:
ast- ast node.lines2position- list to map lines.
-
CodeSelectorPresentation
public CodeSelectorPresentation(DetailNode node, java.util.List<java.lang.Integer> lines2position)
Constructor.- Parameters:
node- DetailNode node.lines2position- list to map lines.
-
-
Method Detail
-
getSelectionStart
public int getSelectionStart()
Returns selection start position.- Returns:
- selection start position.
-
getSelectionEnd
public int getSelectionEnd()
Returns selection end position.- Returns:
- selection end position.
-
findSelectionPositions
public void findSelectionPositions()
Find start and end selection positions from AST line and Column.
-
-