Package org.sonar.java.ast.visitors
Class LinesOfCodeVisitor
- java.lang.Object
-
- org.sonar.java.ast.visitors.SubscriptionVisitor
-
- org.sonar.java.ast.visitors.LinesOfCodeVisitor
-
- All Implemented Interfaces:
JavaCheck
,JavaFileScanner
public class LinesOfCodeVisitor extends SubscriptionVisitor
-
-
Field Summary
-
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context
-
-
Constructor Summary
Constructors Constructor Description LinesOfCodeVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
linesOfCode(Tree tree)
List<Tree.Kind>
nodesToVisit()
void
visitToken(SyntaxToken syntaxToken)
-
Methods inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
hasSemantic, leaveFile, leaveNode, scanFile, scanTree, setContext, visitNode, visitTrivia
-
-
-
-
Method Detail
-
linesOfCode
public int linesOfCode(Tree tree)
-
nodesToVisit
public List<Tree.Kind> nodesToVisit()
- Specified by:
nodesToVisit
in classSubscriptionVisitor
-
visitToken
public void visitToken(SyntaxToken syntaxToken)
- Overrides:
visitToken
in classSubscriptionVisitor
-
-