JavaCheck
, JavaFileScanner
CommentLinesVisitor
, FileLinesVisitor
, IssuableSubscriptionVisitor
, LinesOfCodeVisitor
, Measurer
, SymbolicExecutionVisitor
, SyntaxHighlighterVisitor
public abstract class SubscriptionVisitor extends Object implements JavaFileScanner
Modifier and Type | Field | Description |
---|---|---|
protected JavaFileScannerContext |
context |
Constructor | Description |
---|---|
SubscriptionVisitor() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasSemantic() |
|
void |
leaveNode(Tree tree) |
|
abstract List<Tree.Kind> |
nodesToVisit() |
|
void |
scanFile(JavaFileScannerContext context) |
Method called after parsing and semantic analysis has been done on file.
|
protected void |
scanTree(Tree tree) |
|
void |
visitNode(Tree tree) |
|
void |
visitToken(SyntaxToken syntaxToken) |
|
void |
visitTrivia(SyntaxTrivia syntaxTrivia) |
protected JavaFileScannerContext context
public void visitNode(Tree tree)
public void leaveNode(Tree tree)
public void visitToken(SyntaxToken syntaxToken)
public void visitTrivia(SyntaxTrivia syntaxTrivia)
public void scanFile(JavaFileScannerContext context)
JavaFileScanner
scanFile
in interface JavaFileScanner
context
- Context of analysis containing the parsed tree.protected void scanTree(Tree tree)
public boolean hasSemantic()
Copyright © 2012–2018 SonarSource. All rights reserved.