@Beta
public interface TreeVisitorContext
| Modifier and Type | Method and Description |
|---|---|
void |
addFileIssue(JavaScriptCheck check,
String message)
Creates an issue at a file level.
|
void |
addIssue(JavaScriptCheck check,
int line,
String message)
Creates an issue.
|
void |
addIssue(JavaScriptCheck check,
int line,
String message,
double cost)
Creates an issue.
|
void |
addIssue(JavaScriptCheck check,
IssueLocation location,
List<IssueLocation> secondaryLocations,
Double cost) |
void |
addIssue(JavaScriptCheck check,
Tree tree,
String message)
Creates an issue.
|
void |
addIssue(JavaScriptCheck check,
Tree tree,
String message,
double cost)
Creates an issue.
|
int |
getComplexity(Tree tree) |
File |
getFile() |
String[] |
getPropertyValues(String name)
Fetch project property
|
SymbolModel |
getSymbolModel() |
ScriptTree |
getTopTree() |
ScriptTree getTopTree()
void addIssue(JavaScriptCheck check, Tree tree, String message)
check - instance of the check that creates the issue.tree - the tree on which the issue should be raise. Means the issue will be raised on its corresponding line in the source code.message - the issue message.void addIssue(JavaScriptCheck check, int line, String message)
check - instance of the check that create the issueline - source line on which the issue should be raisedmessage - the issue messagevoid addIssue(JavaScriptCheck check, Tree tree, String message, double cost)
check - instance of the check that create the issuetree - the tree on which the issue should be raise. Means the issue will be raised on its corresponding line in the source code.message - the issue messagecost - specific remediation cost for the issue, used to compute the technical debtvoid addIssue(JavaScriptCheck check, int line, String message, double cost)
check - instance of the check that create the issueline - source line on which the issue should be raisedmessage - the issue messagecost - specific remediation cost for the issue, used to compute the technical debtvoid addIssue(JavaScriptCheck check, IssueLocation location, List<IssueLocation> secondaryLocations, Double cost)
void addFileIssue(JavaScriptCheck check, String message)
check - instance of the check that create the issuemessage - the issue messageFile getFile()
SymbolModel getSymbolModel()
String[] getPropertyValues(String name)
name - property keyint getComplexity(Tree tree)
Copyright © 2011–2015 SonarSource and Eriks Nukis. All rights reserved.