JavaCheck
, JavaFileScanner
public class FileLinesVisitor extends SubscriptionVisitor
FileLinesContext
.context
Constructor | Description |
---|---|
FileLinesVisitor(SonarComponents sonarComponents) |
Modifier and Type | Method | Description |
---|---|---|
List<Tree.Kind> |
nodesToVisit() |
|
void |
scanFile(JavaFileScannerContext context) |
Method called after parsing and semantic analysis has been done on file.
|
void |
visitNode(Tree tree) |
|
void |
visitToken(SyntaxToken syntaxToken) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasSemantic, leaveNode, scanTree, visitTrivia
public FileLinesVisitor(SonarComponents sonarComponents)
public List<Tree.Kind> nodesToVisit()
nodesToVisit
in class SubscriptionVisitor
public void scanFile(JavaFileScannerContext context)
JavaFileScanner
scanFile
in interface JavaFileScanner
scanFile
in class SubscriptionVisitor
context
- Context of analysis containing the parsed tree.public void visitNode(Tree tree)
visitNode
in class SubscriptionVisitor
public void visitToken(SyntaxToken syntaxToken)
visitToken
in class SubscriptionVisitor
Copyright © 2012–2018 SonarSource. All rights reserved.