public class JavaScriptCheckContext extends Object implements TreeVisitorContext
| Constructor and Description |
|---|
JavaScriptCheckContext(ScriptTree tree,
org.sonar.api.issue.Issuable issuable,
File file,
SymbolModel symbolModel,
org.sonar.api.config.Settings settings,
JavaScriptChecks checks,
ComplexityVisitor complexityVisitor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileIssue(JavaScriptCheck check,
String message) |
void |
addIssue(JavaScriptCheck check,
int line,
String message) |
void |
addIssue(JavaScriptCheck check,
int line,
String message,
double cost) |
void |
addIssue(JavaScriptCheck check,
Tree tree,
String message) |
void |
addIssue(JavaScriptCheck check,
Tree tree,
String message,
double cost) |
int |
getComplexity(Tree tree) |
File |
getFile() |
String[] |
getPropertyValues(String name) |
SymbolModel |
getSymbolModel() |
ScriptTree |
getTopTree() |
public JavaScriptCheckContext(ScriptTree tree, org.sonar.api.issue.Issuable issuable, File file, SymbolModel symbolModel, org.sonar.api.config.Settings settings, JavaScriptChecks checks, ComplexityVisitor complexityVisitor)
public ScriptTree getTopTree()
getTopTree in interface TreeVisitorContextpublic void addIssue(JavaScriptCheck check, Tree tree, String message)
addIssue in interface TreeVisitorContextpublic void addIssue(JavaScriptCheck check, int line, String message)
addIssue in interface TreeVisitorContextpublic void addFileIssue(JavaScriptCheck check, String message)
addFileIssue in interface TreeVisitorContextpublic void addIssue(JavaScriptCheck check, Tree tree, String message, double cost)
addIssue in interface TreeVisitorContextpublic void addIssue(JavaScriptCheck check, int line, String message, double cost)
addIssue in interface TreeVisitorContextpublic File getFile()
getFile in interface TreeVisitorContextpublic SymbolModel getSymbolModel()
getSymbolModel in interface TreeVisitorContextpublic String[] getPropertyValues(String name)
getPropertyValues in interface TreeVisitorContextpublic int getComplexity(Tree tree)
getComplexity in interface TreeVisitorContextCopyright © 2011–2015 SonarSource and Eriks Nukis. All rights reserved.